Use CXX instead of g++
CXX resolves to the compiler Travis is using. Also use separate lines instead of "&&". Travis will stop on the first failure automatically.
This commit is contained in:
parent
2a9eaebcaa
commit
8c577800b1
|
@ -2,4 +2,7 @@ language: cpp
|
|||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
script: make test && g++ -o cppcheck -O2 cli/*.cpp lib/*.cpp -Ilib && ./cppcheck --error-exitcode=1 -q cli gui lib
|
||||
script:
|
||||
- make test
|
||||
- $CXX -o cppcheck -O2 cli/*.cpp lib/*.cpp -Ilib
|
||||
- ./cppcheck --error-exitcode=1 -q cli gui lib
|
||||
|
|
Loading…
Reference in New Issue