2019-01-15 17:46:06 +00:00
|
|
|
# NOTE: if you are editing this, try using the yamllint tool to check your work.
|
|
|
|
# yamllint disable rule:line-length
|
|
|
|
---
|
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:
|
2019-01-07 20:28:53 +00:00
|
|
|
- docker run --rm -v $(pwd):/HIRS hirs/hirs-ci:centos7 /bin/bash -c "cd /HIRS; ./gradlew :$SUBPROJECT:build"
|
2018-11-01 14:05:54 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
2019-02-05 17:07:47 +00:00
|
|
|
- stage: Packaging and System Tests
|
|
|
|
script: docker run --rm -v $(pwd):/HIRS hirs/hirs-ci:ubuntu18 /bin/bash -c "cd /HIRS; ./package/package.ubuntu.sh"
|
2018-11-01 14:05:54 +00:00
|
|
|
env: null
|
|
|
|
name: "Package Ubuntu"
|
2019-03-04 18:01:55 +00:00
|
|
|
# TODO: Explore reason behind Building/Packaging Failing on Amazon Linux
|
|
|
|
# - 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"
|
2019-02-05 17:07:47 +00:00
|
|
|
- stage: Packaging and System Tests
|
2019-01-15 17:46:06 +00:00
|
|
|
script: .ci/system-tests/./run-system-tests.sh
|
2019-01-07 20:28:53 +00:00
|
|
|
env: null
|
2019-01-15 17:46:06 +00:00
|
|
|
name: "System Tests"
|
2019-02-05 17:07:47 +00:00
|
|
|
- stage: Packaging and System Tests
|
2019-02-04 19:26:54 +00:00
|
|
|
script: .ci/system-tests/./run-system-tests-tpm2.sh
|
|
|
|
env: null
|
|
|
|
name: "System Tests TPM2"
|