diff options
author | Philip Tricca <philip.b.tricca@intel.com> | 2018-04-30 16:34:54 -0700 |
---|---|---|
committer | Tadeusz Struk <tadeusz.struk@intel.com> | 2018-05-01 09:41:22 -0700 |
commit | dd69c7e5e7c8c0b548cf338b1319e0066001bf49 (patch) | |
tree | b47476eee58f789dcf0a5dd863f981d25ac67ff8 /.travis.yml | |
parent | 14bab42b0a627ff092e5b4ff556b9dbde45c7f8a (diff) | |
download | tpm2-tss-dd69c7e5e7c8c0b548cf338b1319e0066001bf49.tar.gz |
ci: Fail build immediately if hash check of tarball / dependency fails.
Cravis-ci has chosen to "fail late" instead "fail early" for some reason.
This means we have to do a bit of extra work to get the behavior we were
expecting.
Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 498fa2be..a75cc25b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,12 +41,12 @@ addons: install: - wget https://download.01.org/tpm2/ibmtpm974.tar.gz - - sha256sum ibmtpm974.tar.gz | grep -q ^8e45d86129a0adb95fee4cee51f4b1e5b2d81ed3e55af875df53f98f39eb7ad7 + - sha256sum ibmtpm974.tar.gz | grep -q ^8e45d86129a0adb95fee4cee51f4b1e5b2d81ed3e55af875df53f98f39eb7ad7 || travis_terminate 1 - mkdir ibmtpm - tar axf ibmtpm974.tar.gz -C ibmtpm - make -C ibmtpm/src -j$(nproc) - wget https://download.01.org/tpm2/cmocka-1.1.1.tar.xz - - sha256sum cmocka-1.1.1.tar.xz | grep -q f02ef48a7039aa77191d525c5b1aee3f13286b77a13615d11bc1148753fc0389 + - sha256sum cmocka-1.1.1.tar.xz | grep -q f02ef48a7039aa77191d525c5b1aee3f13286b77a13615d11bc1148753fc0389 || travis_terminate 1 - tar -Jxvf cmocka-1.1.1.tar.xz - mkdir cmocka - cd cmocka-1.1.1 @@ -57,7 +57,7 @@ install: - make install - cd ../../ - wget https://download.01.org/tpm2/autoconf-archive-2017.09.28.tar.xz - - sha256sum autoconf-archive-2017.09.28.tar.xz | grep -q 5c9fb5845b38b28982a3ef12836f76b35f46799ef4a2e46b48e2bd3c6182fa01 + - sha256sum autoconf-archive-2017.09.28.tar.xz | grep -q 5c9fb5845b38b28982a3ef12836f76b35f46799ef4a2e46b48e2bd3c6182fa01 || travis_terminate 1 - tar xJf autoconf-archive-2017.09.28.tar.xz - cp autoconf-archive-2017.09.28/m4/ax_code_coverage.m4 m4/ - pip install --user cpp-coveralls |