-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (77 loc) · 2.35 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
sudo: required
services: docker
dist: trusty
language: cpp
env:
global:
- OMP_NUM_THREADS=3
- DO_BUILD=yes
- DO_TEST=yes
matrix:
include:
- compiler: gcc49
env:
- COMPILER=g++
- IMG=gcc49
- CMAKE_EXTRA_FLAGS="-DENABLE_WARNINGS=On -DENABLE_TBB=On -DRAJA_DEPRECATED_TESTS=On"
- compiler: gcc6
env:
- COMPILER=g++
- IMG=gcc6
- CMAKE_EXTRA_FLAGS="-DENABLE_WARNINGS=On -DENABLE_TBB=On"
- compiler: gcc7
env:
- COMPILER=g++
- IMG=gcc7
- CMAKE_EXTRA_FLAGS="-DENABLE_WARNINGS=On -DENABLE_TBB=On"
- compiler: gcc8
env:
- COMPILER=g++
- IMG=gcc8
- CMAKE_EXTRA_FLAGS="-DENABLE_WARNINGS=On -DENABLE_TBB=On"
- compiler: clang6
env:
- COMPILER=clang++
- IMG=clang6
- CMAKE_EXTRA_FLAGS="-DCMAKE_CXX_FLAGS=-fmodules -DENABLE_TBB=On"
- compiler: clang5
env:
- COMPILER=clang++
- IMG=clang5
- CMAKE_EXTRA_FLAGS="-DCMAKE_CXX_FLAGS=-fmodules -DENABLE_TBB=On"
- compiler: nvcc
env:
- COMPILER=g++
- IMG=nvcc9
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=On -DENABLE_TBB=On"
- DO_TEST=no
- compiler: gcc-4.9-debug
env:
- COMPILER=g++
- IMG=gcc49
- CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_WARNINGS=On -DENABLE_WARNINGS_AS_ERRORS=On -DENABLE_TBB=On"
- compiler: clang-6-debug
env:
- COMPILER=clang++
- IMG=clang6
- CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_TBB=On -DCMAKE_CXX_FLAGS=-fsanitize=address"
- ASAN_OPTIONS=detect_leaks=0
- "LSAN_OPTIONS=verbosity=1:log_threads=1"
- compiler: nvcc-debug
env:
- COMPILER=g++
- IMG=nvcc9
- CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_CUDA=On -DENABLE_WARNINGS=On -DENABLE_WARNINGS_AS_ERRORS=On -DENABLE_TBB=On"
- DO_TEST=no
- compiler: clang-cuda
env:
- COMPILER=clang++
- IMG=clang-cuda
- CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=Off -DENABLE_CLANG_CUDA=On -DBLT_CLANG_CUDA_ARCH=sm_60 -DENABLE_CUDA=On -DCUDA_ARCH=sm_60"
- DO_TEST=no
before_install:
- export LSAN_OPTIONS
- export ASAN_OPTIONS
script:
- docker run --rm --user='root' -v ${TRAVIS_BUILD_DIR}:/home/raja rajaorg/compiler:$IMG chown -R raja /home/raja
- docker run --rm -v ${TRAVIS_BUILD_DIR}:/home/raja -e ASAN_OPTIONS -e LSAN_OPTIONS -e COMPILER -e DO_BUILD -e DO_TEST -e CMAKE_EXTRA_FLAGS rajaorg/compiler:$IMG ./scripts/travis_build_and_test.sh