forked from cmu-db/peloton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
101 lines (94 loc) · 2.98 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#language: c++
matrix:
include:
# Mac build
- os: osx
osx_image: xcode8.3
compiler: clang
env:
- PELOTON_BUILD_TYPE=Debug COVERALLS=Off
# Linux builds
- os: linux
sudo: required
dist: trusty
compiler: gcc
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
- boost-latest
packages:
- g++-4.9
env:
- CXX=g++-4.9 PELOTON_BUILD_TYPE=Debug COVERALLS=Off
- os: linux
sudo: required
dist: trusty
compiler: gcc
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
- boost-latest
packages:
- g++-4.9
env:
- CXX=g++-4.9 PELOTON_BUILD_TYPE=Release COVERALLS=Off
#Job where coveralls is executed
- os: linux
sudo: required
dist: trusty
compiler: gcc
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
- boost-latest
packages:
- g++-5
env:
- CXX=g++-5 PELOTON_BUILD_TYPE=Debug COVERALLS=On
- os: linux
sudo: required
dist: trusty
compiler: gcc
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
- boost-latest
packages:
- g++-5
env:
- CXX=g++-5 PELOTON_BUILD_TYPE=Release COVERALLS=Off
before_script:
# setup environment
- ./script/installation/packages.sh
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then pip install --user cpp-coveralls; fi
script:
# first, run source_validator
- python ./script/validators/source_validator.py
# create build directory
- mkdir build
- cd build
# run cmake
- cmake -DCOVERALLS=$COVERALLS -DCMAKE_PREFIX_PATH=`llvm-config-3.7 --prefix` -DCMAKE_BUILD_TYPE=$PELOTON_BUILD_TYPE -DUSE_SANITIZER=Address ..
# build
- make -j4
# run tests
- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then make check -j4; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ASAN_OPTIONS=detect_container_overflow=0 make check -j4; fi
# build benchmarks
- make benchmark -j4
# install peloton
- make install
# run psql tests
- bash ../script/testing/psql/psql_test.sh
# run jdbc tests
- python ../script/validators/jdbc_validator.py
# upload coverage info
- bash -c "if [ $(echo $COVERALLS | tr "[:lower:]" "[:upper:]") = 'ON' ] ; then make coveralls; fi"