Fixed travis script conditions
This commit is contained in:
parent
b25756b46e
commit
4322fb50cf
1 changed files with 8 additions and 7 deletions
15
.travis.yml
15
.travis.yml
|
@ -70,11 +70,11 @@ matrix:
|
|||
DEPLOY: true
|
||||
|
||||
before_install:
|
||||
- >
|
||||
[ "$TRAVIS_OS_NAME" = "osx" ] && (
|
||||
- |
|
||||
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||
brew update;
|
||||
brew outdated cmake || brew upgrade cmake
|
||||
)
|
||||
fi
|
||||
|
||||
script:
|
||||
- export CXX=${CC/gcc/g++}; export CXX=${CXX/clang/clang++}
|
||||
|
@ -92,10 +92,11 @@ script:
|
|||
- ctest -j4
|
||||
|
||||
after_success:
|
||||
- >
|
||||
[ "$COVERAGE" = "ON" ] &&
|
||||
make gcov &&
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
- |
|
||||
if [ "$COVERAGE" = "ON" ]; then
|
||||
make gcov
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
fi
|
||||
|
||||
after_failure:
|
||||
- cat Testing/Temporary/LastTest.log samples/*.{out,err} ../samples/tests/*.{out,err}
|
||||
|
|
Loading…
Add table
Reference in a new issue