forked from LLNL/Umpire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (63 loc) · 1.8 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
services: docker
dist: trusty
language: cpp
env:
global:
- DO_BUILD=yes
- DO_TEST=yes
- GTEST_COLOR=1
matrix:
include:
- compiler: gcc5
env:
- COMPILER=g++
- IMG=gcc-5
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=Off -DENABLE_COVERAGE=On -DENABLE_C=On"
- DO_MEMCHECK=yes
- compiler: gcc6
env:
- COMPILER=g++
- IMG=gcc-6
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=Off -DENABLE_C=On"
- compiler: gcc7
env:
- COMPILER=g++
- IMG=gcc-7
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=Off"
- compiler: gcc8
env:
- COMPILER=g++
- IMG=gcc-8
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=Off"
- compiler: clang4
env:
- COMPILER=clang++
- IMG=clang-4
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=Off"
- compiler: clang5
env:
- COMPILER=clang++
- IMG=clang-5
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=Off"
- compiler: clang6
env:
- COMPILER=clang++
- IMG=clang-6
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=Off"
- compiler: nvcc
env:
- COMPILER=g++
- IMG=nvcc-9
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=On"
- DO_TEST=no
- compiler: hcc
env:
- COMPILER=hcc
- IMG=rocm
- CMAKE_EXTRA_FLAGS="-C ../host-configs/rocm.cmake -DCMAKE_CXX_COMPILER=/opt/rocm/bin/hcc -DENABLE_HCC=On -DENABLE_OPENMP=Off -DENABLE_CUDA=Off -DENABLE_BENCHMARKS=Off -DENABLE_WARNINGS_AS_ERRORS=Off"
- DO_TEST=no
script:
- docker run --rm --user='root' -v ${TRAVIS_BUILD_DIR}:/home/axom axom/compilers:$IMG chown -R axom /home/axom
- docker run --rm -v ${TRAVIS_BUILD_DIR}:/home/axom -e COMPILER -e DO_BUILD -e DO_TEST -e DO_MEMCHECK -e CMAKE_EXTRA_FLAGS -e GTEST_COLOR axom/compilers:$IMG ./scripts/travis/build_and_test.sh
after_success:
- if [[ "${CMAKE_EXTRA_FLAGS}" == *"ENABLE_COVERAGE"* ]] ; then bash <(curl -s https://codecov.io/bash) -a "-f" >& /dev/null; fi