-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (39 loc) · 1.13 KB
/
.travis.yml
File metadata and controls
42 lines (39 loc) · 1.13 KB
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
language: cpp
dist: trusty
sudo: true
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- clang-6.0
- g++-7
- valgrind
compiler:
- gcc
- clang
env:
global:
- CXX_FLAGS="-Wall -Wextra -Werror"
matrix:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
install:
# get cmake-3.10 and dump some debug info
- mkdir -p ~/cmake
- curl -ks https://cmake.org/files/v3.10/cmake-3.10.3-Linux-x86_64.sh -o cmake.sh
- bash cmake.sh --skip-license --prefix="${HOME}/cmake"
- export PATH=~/cmake/bin:$PATH
- cmake --version
script:
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-6.0"; fi
- if [ "$CXX" = "g++" ] ; then export CXX="g++-7"; fi
- ${CXX} --version
- mkdir -p build
- cd build
- cmake ${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DMEMORYCHECK_SUPPRESSIONS_FILE="${TRAVIS_BUILD_DIR}/thorin2/resources/valgrind.supp" ..
- make -j3 VERBOSE=1
- ctest -R impala -T memcheck -j3
- cat ${TRAVIS_BUILD_DIR}/build/Testing/Temporary/MemoryChecker.*.log > out && cat out
- test ! -s out