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:
myint 2012-09-04 22:22:49 -07:00 committed by Daniel Marjamäki
parent 2a9eaebcaa
commit 8c577800b1
1 changed files with 4 additions and 1 deletions

View File

@ -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