[#90] Add Amazon Linux Package test to Travis CI

This commit is contained in:
apldev3 2019-02-22 12:15:44 -05:00
parent a2e6feb15b
commit 5eeebabcc2
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,17 @@
FROM amazonlinux:2
MAINTAINER apl.dev3@jhuapl.edu
# Install packages for building HIRS
RUN yum -y update && yum clean all
RUN yum groupinstall -y "Development Tools"
RUN yum install -y wget java-1.8.0-openjdk-devel protobuf-compiler rpm-build cmake make git gcc-c++ doxygen graphviz python libssh2-devel openssl protobuf-devel tpm2-tss-devel trousers-devel libcurl-devel
# Install EPEL
WORKDIR /tmp
RUN wget -O epel.rpm -nv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum install -y ./epel.rpm
RUN yum install -y cppcheck log4cplus-devel re2-devel
# Set Environment Variables
ENV JAVA_HOME /usr/lib/jvm/java

View File

@ -40,6 +40,10 @@ jobs:
script: docker run --rm -v $(pwd):/HIRS hirs/hirs-ci:ubuntu18 /bin/bash -c "cd /HIRS; ./package/package.ubuntu.sh" script: docker run --rm -v $(pwd):/HIRS hirs/hirs-ci:ubuntu18 /bin/bash -c "cd /HIRS; ./package/package.ubuntu.sh"
env: null env: null
name: "Package Ubuntu" name: "Package Ubuntu"
- stage: Packaging and System Tests
script: docker run --rm -v $(pwd):/HIRS hirs/hirs-ci:amazonlinux2 /bin/bash -c "cd /HIRS; ./package/package.centos.sh"
env: null
name: "Package Amazon Linux"
- stage: Packaging and System Tests - stage: Packaging and System Tests
script: .ci/system-tests/./run-system-tests.sh script: .ci/system-tests/./run-system-tests.sh
env: null env: null