-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
68 lines (66 loc) · 2.65 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
sudo: required
language: cpp
matrix:
fast_finish: true
include:
# Debug builds on both MacOS and Linux
- os: osx
osx_image: xcode9.4
compiler: clang
env:
- NAME="Mac [dbg/clang]" CMAKE_BUILD_TYPE=debug TPL_USE_ASAN=On
install:
- echo 'y' | ./deps.sh
- export PATH=/usr/local/opt/llvm@7/bin:$PATH
- export LLVM_DIR=/usr/local/opt/llvm@7
- os: linux
dist: trusty
env:
- NAME="Docker[dbg/packages.sh]" CMAKE_BUILD_TYPE=debug TPL_USE_ASAN=On DOCKER=true
install:
- docker pull ubuntu:18.04
- docker run -itd --name build ubuntu:18.04
- docker cp . build:/repo
- docker exec build /bin/sh -c "echo 'y' | /repo/deps.sh"
# Release builds. Will be replaced by Jenkins
- os: osx
osx_image: xcode9.4
compiler: clang
env:
- NAME="Mac [rel/clang]" CMAKE_BUILD_TYPE=release TPL_USE_ASAN=Off
install:
- echo 'y' | ./deps.sh
- export PATH=/usr/local/opt/llvm@7/bin:$PATH
- export LLVM_DIR=/usr/local/opt/llvm@7
- os: linux
dist: trusty
env:
- NAME="Docker[rel/packages.sh]" CMAKE_BUILD_TYPE=release TPL_USE_ASAN=Off DOCKER=true
install:
- docker pull ubuntu:18.04
- docker run -itd --name build ubuntu:18.04
- docker cp . build:/repo
- docker exec build /bin/sh -c "echo 'y' | /repo/deps.sh"
before_script:
- if [[ "$DOCKER" = true ]]; then
docker exec build /bin/sh -c "mkdir -p /repo/build" &&
docker exec -e CMAKE_CXX_FLAGS="-mavx2" -e CMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" -e TPL_USE_ASAN="$TPL_USE_ASAN" build /bin/sh -c "cd /repo/build && cmake -DCMAKE_CXX_FLAGS=$CMAKE_CXX_FLAGS -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DTPL_USE_ASAN=$TERRIER_USE_ASAN .." &&
docker exec build /bin/sh -c "cd /repo/build && make check-clang-tidy" &&
docker exec build /bin/sh -c "cd /repo/build && make check-format" &&
docker exec build /bin/sh -c "cd /repo/build && make check-lint";
else
mkdir build &&
cd build &&
cmake -DCMAKE_CXX_FLAGS="-mavx2" -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DTPL_USE_ASAN=$TPL_USE_ASAN .. &&
ASAN_OPTIONS=detect_container_overflow=0 make check-clang-tidy &&
ASAN_OPTIONS=detect_container_overflow=0 make check-format &&
ASAN_OPTIONS=detect_container_overflow=0 make check-lint;
fi
script:
- if [[ "$DOCKER" = true ]]; then
docker exec build /bin/sh -c "cd /repo/build && make" &&
docker exec build /bin/sh -c "cd /repo/build && make check" ;
else
ASAN_OPTIONS=detect_container_overflow=0 make &&
ASAN_OPTIONS=detect_container_overflow=0 make check ;
fi