From 58a46b289d6b8df06072fc9c0304f4b2d3f4b051 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 9 Nov 2019 17:13:49 +0500 Subject: [PATCH] travis-ci: run coverity scan in separate cron task --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9a9d10d..5a3ca21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,9 +30,17 @@ matrix: - env: ASAN=-DASAN=1 os: linux compiler: gcc - - env: RUN_COVERITY=1 COVERITY_SCAN_PROJECT_NAME="gost-engine" COVERITY_SCAN_BRANCH_PATTERN="*" COVERITY_SCAN_NOTIFICATION_EMAIL="beldmit@gmail.com" COVERITY_SCAN_BUILD_COMMAND="make" + - env: COVERITY_SCAN_PROJECT_NAME="gost-engine" COVERITY_SCAN_BRANCH_PATTERN="*" COVERITY_SCAN_NOTIFICATION_EMAIL="beldmit@gmail.com" COVERITY_SCAN_BUILD_COMMAND="make" + if: type == cron os: linux compiler: gcc + script: + - mkdir build + - cd build + - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines .. + - curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true + - os: linux + compiler: gcc - os: linux arch: arm64 compiler: gcc @@ -53,5 +61,5 @@ script: - mkdir build - cd build - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ${ASAN} .. - - if [ ! -z ${COVERITY_SCAN_TOKEN+x} -a "${RUN_COVERITY}" = "1" ]; then curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true; else make; fi + - make - make test CTEST_OUTPUT_ON_FAILURE=1 -- 2.39.5