Travis CI: Fix build_command for Coverity Scan
authorIvan Maidanski <ivmai@mail.ru>
Mon, 24 Apr 2017 08:37:44 +0000 (11:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 24 Apr 2017 08:38:23 +0000 (11:38 +0300)
(fix commit 18f1ddd)

.travis.yml

index a3aa66e..8ca6ab2 100644 (file)
@@ -8,14 +8,16 @@ matrix:
       compiler: gcc
     - os: osx
     - os: linux
+      env: [ COVERITY_SCAN_BRANCH=1 ]
       addons:
         coverity_scan:
           project:
             name: ivmai/libatomic_ops
             version: 7.5.0
+            description: The atomic_ops library
           branch_pattern: master
-          build_command_prepend: "./autogen.sh && ./configure"
-          build_command: "make -j check CFLAGS_EXTRA=-DLINT2"
+          build_command_prepend: ./configure
+          build_command: make -j check CFLAGS_EXTRA="-D LINT2 -march=native"
     - os: linux
       compiler: clang
       env:
@@ -238,7 +240,7 @@ before_install:
     fi
 
 install:
-  - if [[ "$COVERITY_SCAN_BRANCH" != 1 ]]; then ./autogen.sh; fi
+  - ./autogen.sh
   - if [[ "$REPORT_COVERAGE" == true ]]; then
       gem install coveralls-lcov;
     fi