This repository was archived by the owner on Sep 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,14 @@ matrix:
34
34
# COVERALLS: we run coveralls only for one compiler
35
35
- COVERALLS=On
36
36
# 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
38
45
# run tests
39
46
- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then make check -j4; fi
40
47
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 make check -j4; fi
@@ -68,7 +75,14 @@ matrix:
68
75
- PELOTON_BUILD_TYPE=Release
69
76
- COVERALLS=Off
70
77
# 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
72
86
# run tests
73
87
- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then make check -j4; fi
74
88
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 make check -j4; fi
You can’t perform that action at this time.
0 commit comments