]> git.proxmox.com Git - libtpms.git/commitdiff
Travis: If building coverity_scan branch, build only job number 1
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 30 May 2019 11:50:01 +0000 (07:50 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 30 May 2019 14:11:33 +0000 (10:11 -0400)
Only build one job when building the coverity branch.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
.travis.yml

index 53533b893a767ac364dc002272dedb14848588e3..0a1b5a714446236ee7a10c0b2acae9eafe88ef4a 100644 (file)
@@ -30,6 +30,8 @@ script:
   - make -j$(${NPROC}) ${TARGET}
 after_failure:
   - for f in tests/*.log; do echo ">>>>>>> $f <<<<<<<"; tail -n 50 $f; done
+before_install:
+  - test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
 matrix:
   include:
     - env: CONFIG="--with-openssl --prefix=/usr --with-tpm2" "TARGET=distcheck"