Skip to content

Commit

Permalink
Prepare for Coverity static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo-Yuan-Huang committed Sep 17, 2019
1 parent 51db4b7 commit bf3bbb3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ matrix:
before_script:
- source $TRAVIS_BUILD_DIR/scripts/travis/install-externs.sh $TRAVIS_BUILD_DIR
script:
- echo ${COVERITY_SCAN_BRANCH}
- source $TRAVIS_BUILD_DIR/scripts/travis/build-static.sh $TRAVIS_BUILD_DIR

addons:
apt:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ endif()
# PROJECT
# name version language
# ---------------------------------------------------------------------------- #
project(ilang VERSION 0.9.4
project(ilang VERSION 0.9.5
LANGUAGES CXX
)

Expand Down
9 changes: 9 additions & 0 deletions scripts/travis/build-static.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

CI_BUILD_DIR=$1

cd $CI_BUILD_DIR
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DILANG_COVERITY=ON -DILANG_BUILD_TEST=OFF
make -j$(nproc)

0 comments on commit bf3bbb3

Please sign in to comment.