]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
travis-ci: run coverity scan in separate cron task
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 9 Nov 2019 12:13:49 +0000 (17:13 +0500)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sat, 9 Nov 2019 18:03:26 +0000 (21:03 +0300)
.travis.yml

index 9a9d10d13a3163aa3bf093c7c03a9f7c862f71c5..5a3ca214183a55de230254449243c9bc131ea704 100644 (file)
@@ -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