@@ -10,8 +10,9 @@ matrix:
10
10
compiler : clang
11
11
env :
12
12
# NAME has no actual use, just to make the travis jobs overview more clear
13
- - NAME="clang Debug"
13
+ - NAME="clang Debug/Tests/AddressSanitizer "
14
14
- PELOTON_BUILD_TYPE=Debug
15
+ - SANITIZER=Address
15
16
- COVERALLS=Off
16
17
17
18
# Linux builds for gcc 5
@@ -32,31 +33,8 @@ matrix:
32
33
- CXX=g++-5
33
34
- CC=gcc-5
34
35
- PELOTON_BUILD_TYPE=Debug
36
+ - SANITIZER=Address
35
37
- COVERALLS=On
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
45
- # run tests
46
- - if [[ $TRAVIS_OS_NAME != 'osx' ]]; then make check -j4; fi
47
- - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 make check -j4; fi
48
- # build benchmarks
49
- - make benchmark -j4
50
- # install peloton
51
- - make install
52
- # run psql tests
53
- - bash ../script/testing/psql/psql_test.sh
54
- # run jdbc tests
55
- - python ../script/validators/jdbc_validator.py
56
- # run junit tests
57
- - python ../script/testing/junit/run_junit.py
58
- # upload coverage info
59
- - make coveralls
60
38
61
39
- os : linux
62
40
sudo : required
@@ -75,29 +53,8 @@ matrix:
75
53
- CXX=g++-5
76
54
- CC=gcc-5
77
55
- PELOTON_BUILD_TYPE=Release
56
+ - SANITIZER=
78
57
- COVERALLS=Off
79
- # override script value to run also tests and benchmarks
80
- script :
81
- # create build directory
82
- - mkdir build
83
- - cd build
84
- # run cmake. NOTE: the PATH is made explicit to avoid automatic selection of the preinstalled llvm version in the Travis trusty image
85
- - 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 ..
86
- # build
87
- - make -j4
88
- # run tests
89
- - if [[ $TRAVIS_OS_NAME != 'osx' ]]; then make check -j4; fi
90
- - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 make check -j4; fi
91
- # build benchmarks
92
- - make benchmark -j4
93
- # install peloton
94
- - make install
95
- # run psql tests
96
- - bash ../script/testing/psql/psql_test.sh
97
- # run jdbc tests
98
- - python ../script/validators/jdbc_validator.py
99
- # run junit tests
100
- - python ../script/testing/junit/run_junit.py
101
58
102
59
install :
103
60
# setup environment
@@ -114,6 +71,20 @@ script:
114
71
- mkdir build
115
72
- cd build
116
73
# run cmake. NOTE: the PATH is made explicit to avoid automatic selection of the preinstalled llvm version in the Travis trusty image
117
- - 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 ..
74
+ - 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=$SANITIZER ..
118
75
# build
119
76
- make -j4
77
+ # run tests
78
+ - if [[ $TRAVIS_OS_NAME != 'osx' ]]; then make check -j4; fi
79
+ - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 make check -j4; fi
80
+ # install peloton
81
+ - make install
82
+ # run psql tests
83
+ - bash ../script/testing/psql/psql_test.sh
84
+ # run jdbc tests
85
+ - python ../script/validators/jdbc_validator.py
86
+ # run junit tests
87
+ - if [[ $TRAVIS_OS_NAME != 'osx' ]]; then python ../script/testing/junit/run_junit.py; fi
88
+ - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 python ../script/testing/junit/run_junit.py; fi
89
+ # upload coverage info
90
+ - if [[ $TRAVIS_OS_NAME == 'On' ]]; then make coveralls; fi
0 commit comments