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
|
2020-08-04 18:52:33 +00:00
|
|
|
- TCG_RIM_TOOL=tools/tcg_rim_tool
|
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:
|
2021-05-27 19:24:39 +00:00
|
|
|
- echo $DOCKER_PWD | docker login -u "$DOCKER_USER" --password-stdin
|
2020-08-04 18:52:33 +00:00
|
|
|
- docker run --rm -v $(pwd):/HIRS hirs/hirs-ci:centos7 /bin/bash -c "cd /HIRS; ./gradlew :$SUBPROJECT:build -x test :$TCG_RIM_TOOL:build"
|
2018-11-01 14:05:54 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
2019-02-05 17:07:47 +00:00
|
|
|
- stage: Packaging and System Tests
|
2021-05-27 20:00:07 +00:00
|
|
|
script:
|
2021-05-27 20:12:14 +00:00
|
|
|
- echo $DOCKER_PWD | docker login -u "$DOCKER_USER" --password-stdin
|
2021-05-27 20:00:07 +00:00
|
|
|
- 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-02-05 17:07:47 +00:00
|
|
|
- stage: Packaging and System Tests
|
2021-05-27 20:00:07 +00:00
|
|
|
script:
|
2021-05-27 20:12:14 +00:00
|
|
|
- echo $DOCKER_PWD | docker login -u "$DOCKER_USER" --password-stdin
|
2021-05-27 20:00:07 +00:00
|
|
|
- .ci/system-tests/./run-system-tests.sh
|
2019-01-07 20:28:53 +00:00
|
|
|
env: null
|
2019-12-23 10:28:26 +00:00
|
|
|
name: "System Tests TPM 1.2"
|
2019-02-05 17:07:47 +00:00
|
|
|
- stage: Packaging and System Tests
|
2021-05-27 20:00:07 +00:00
|
|
|
script:
|
2021-05-27 20:12:14 +00:00
|
|
|
- echo $DOCKER_PWD | docker login -u "$DOCKER_USER" --password-stdin
|
2021-05-27 20:00:07 +00:00
|
|
|
- .ci/system-tests/./run-system-tests-tpm2.sh
|
2019-02-04 19:26:54 +00:00
|
|
|
env: null
|
2019-12-23 10:28:26 +00:00
|
|
|
name: "System Tests TPM 2.0"
|
2019-08-02 16:39:56 +00:00
|
|
|
- stage: Packaging and System Tests
|
2021-05-27 20:00:07 +00:00
|
|
|
script:
|
2021-05-27 20:12:14 +00:00
|
|
|
- echo $DOCKER_PWD | docker login -u "$DOCKER_USER" --password-stdin
|
2021-05-27 20:00:07 +00:00
|
|
|
- .ci/system-tests/./run-system-tests-tpm2-base-delta-bad.sh
|
2019-08-02 16:39:56 +00:00
|
|
|
env: null
|
2019-12-23 10:28:26 +00:00
|
|
|
name: "System Tests TPM 2.0 Base/Delta(Bad)"
|
2019-12-10 11:07:05 +00:00
|
|
|
- stage: Packaging and System Tests
|
2021-05-27 20:00:07 +00:00
|
|
|
script:
|
2021-05-27 20:12:14 +00:00
|
|
|
- echo $DOCKER_PWD | docker login -u "$DOCKER_USER" --password-stdin
|
2021-05-27 20:00:07 +00:00
|
|
|
- .ci/system-tests/./run-system-tests-tpm2-base-delta-good.sh
|
2019-12-10 11:07:05 +00:00
|
|
|
env: null
|
2019-12-23 10:28:26 +00:00
|
|
|
name: "System Tests TPM 2.0 Base/Delta(Good)"
|