@@ -33,8 +33,15 @@ matrix:
33
33
- PELOTON_BUILD_TYPE=Debug
34
34
# COVERALLS: we run coveralls only for one compiler
35
35
- COVERALLS=On
36
- # only run tests if the build itself succeeded
37
- after_success :
36
+ # override script value to run also tests and benchmarks
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
@@ -67,8 +74,15 @@ matrix:
67
74
- CC=gcc-4.8
68
75
- PELOTON_BUILD_TYPE=Release
69
76
- COVERALLS=Off
70
- # only run tests if the build itself succeeded
71
- after_success :
77
+ # override script value to run also tests and benchmarks
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
@@ -129,6 +143,7 @@ before_script:
129
143
# first, run source_validator
130
144
- python ./script/validators/source_validator.py
131
145
146
+ # build peloton (override this value to execute tests)
132
147
script :
133
148
# create build directory
134
149
- mkdir build
0 commit comments