Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 56ad448

Browse files
committed
[Fix] Check status of tests and benchmarks
1 parent 366bcf0 commit 56ad448

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.travis.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ matrix:
3434
# COVERALLS: we run coveralls only for one compiler
3535
- COVERALLS=On
3636
# only run tests if the build itself succeeded
37-
after_success:
37+
script:
38+
# create build directory
39+
- mkdir build
40+
- cd build
41+
# run cmake. NOTE: the PATH is made explicit to avoid automatic selection of the preinstalled llvm version in the Travis trusty image
42+
- PATH=/usr/lib/llvm-3.7/bin:/usr/bin:$PATH cmake -DCOVERALLS=$COVERALLS -DCMAKE_PREFIX_PATH=`llvm-config-3.7 --prefix` -DCMAKE_BUILD_TYPE=$PELOTON_BUILD_TYPE -DUSE_SANITIZER=Address ..
43+
# build
44+
- make -j4
3845
# run tests
3946
- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then make check -j4; fi
4047
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 make check -j4; fi
@@ -68,7 +75,14 @@ matrix:
6875
- PELOTON_BUILD_TYPE=Release
6976
- COVERALLS=Off
7077
# only run tests if the build itself succeeded
71-
after_success:
78+
script:
79+
# create build directory
80+
- mkdir build
81+
- cd build
82+
# run cmake. NOTE: the PATH is made explicit to avoid automatic selection of the preinstalled llvm version in the Travis trusty image
83+
- PATH=/usr/lib/llvm-3.7/bin:/usr/bin:$PATH cmake -DCOVERALLS=$COVERALLS -DCMAKE_PREFIX_PATH=`llvm-config-3.7 --prefix` -DCMAKE_BUILD_TYPE=$PELOTON_BUILD_TYPE -DUSE_SANITIZER=Address ..
84+
# build
85+
- make -j4
7286
# run tests
7387
- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then make check -j4; fi
7488
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 make check -j4; fi

0 commit comments

Comments
 (0)