]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
travis-ci: enable coverity scan 183/head
authorIlya Shipitsin <chipitsine@gmail.com>
Thu, 17 Oct 2019 13:45:38 +0000 (18:45 +0500)
committerIlya Shipitsin <chipitsine@gmail.com>
Thu, 17 Oct 2019 13:45:38 +0000 (18:45 +0500)
.travis.yml

index d76951099aae3da302b10c438ed21ffa2ae55138..30ad2f370d801295bdd20885a918d5e09fb7134d 100644 (file)
@@ -30,10 +30,12 @@ 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"
+      os: linux
+      compiler: gcc
     - os: osx
       compiler: clang
 
-
 before_script:
   - curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus
   - sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1)
@@ -48,5 +50,5 @@ script:
   - mkdir build
   - cd build
   - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ${ASAN} ..
-  - make
+  - 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 test CTEST_OUTPUT_ON_FAILURE=1