2018-09-25 13:36:50 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
sudo: true
|
|
|
|
|
|
|
|
language: java
|
|
|
|
|
2018-09-26 18:40:23 +00:00
|
|
|
env:
|
2018-11-01 14:05:54 +00:00
|
|
|
- SUBPROJECT=HIRS_Utils
|
|
|
|
- SUBPROJECT=HIRS_Provisioner
|
|
|
|
- SUBPROJECT=HIRS_ProvisionerTPM2
|
|
|
|
- SUBPROJECT=HIRS_Structs
|
|
|
|
- SUBPROJECT=HIRS_AttestationCA
|
|
|
|
- SUBPROJECT=HIRS_AttestationCAPortal
|
|
|
|
- SUBPROJECT=TPM_Utils
|
|
|
|
- SUBPROJECT=tpm_module
|
2018-09-26 18:40:23 +00:00
|
|
|
|
2018-09-25 13:36:50 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.gradle/caches/
|
|
|
|
- $HOME/.gradle/wrapper/
|
|
|
|
|
|
|
|
install: true
|
|
|
|
|
|
|
|
script:
|
2018-10-12 18:26:01 +00:00
|
|
|
- docker run --rm hirs/hirs-ci:centos7 /bin/bash -c "git clone https://github.com/nsacyber/HIRS.git /root/HIRS; cd /root/HIRS; git checkout ${TRAVIS_BRANCH}; ./gradlew :$SUBPROJECT:build"
|
2018-11-01 14:05:54 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: package
|
|
|
|
script: docker run --rm hirs/hirs-ci:centos7 /bin/bash -c "git clone https://github.com/nsacyber/HIRS.git /root/HIRS; cd /root/HIRS; git checkout ${TRAVIS_BRANCH}; ./package/package.centos.sh"
|
|
|
|
env: null
|
|
|
|
name: "Package Centos"
|
|
|
|
- script: docker run --rm hirs/hirs-ci:ubuntu18 /bin/bash -c "git clone https://github.com/nsacyber/HIRS.git /root/HIRS; cd /root/HIRS; git checkout ${TRAVIS_BRANCH}; ./package/package.ubuntu.sh"
|
|
|
|
env: null
|
|
|
|
name: "Package Ubuntu"
|