forked from mercury-hpc/mercury
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (79 loc) · 2.56 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
language: c
os:
- linux
compiler:
- gcc
- clang
sudo: true
dist: trusty
group: beta
cache:
directories:
- $HOME/install
env:
global:
- MERCURY_NO_LOOP="true"
matrix:
- MERCURY_BUILD_CONFIGURATION="Debug"
- MERCURY_BUILD_CONFIGURATION="RelWithDebInfo"
- MERCURY_BUILD_CONFIGURATION="Release"
matrix:
include:
- os: osx
compiler: gcc
env: MERCURY_BUILD_CONFIGURATION="RelWithDebInfo"
- os: osx
compiler: clang
env: MERCURY_BUILD_CONFIGURATION="RelWithDebInfo"
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- libtsan0
- libasan4
- liblsan0
env: MERCURY_MEMORYCHECK_TYPE="ThreadSanitizer"
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- libtsan0
- libasan4
- liblsan0
env: MERCURY_MEMORYCHECK_TYPE="AddressSanitizer"
branches:
only:
- master
before_install:
- echo "Existing directories in $HOME" && ls $HOME
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask uninstall --force oclint; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$CC" == "gcc" ]]; then brew install gcc; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mpich; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libfabric; fi
install:
- ./Testing/script/travis_build.sh
before_script:
- if [ -d "$HOME/install/bin" ]; then ls $HOME/install/bin; fi
- export PATH=$HOME/install/bin:$PATH
- export LD_LIBRARY_PATH=$HOME/install/lib:$HOME/install/lib64:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=$HOME/install/lib/pkgconfig:$PKG_CONFIG_PATH
- if [[ "$CC" == "gcc" && `command -v gcc-7` ]]; then export CC=gcc-7; export CXX=g++-7; export AR=gcc-ar-7; export NM=gcc-nm-7; export RANLIB=gcc-ranlib-7; fi
- $CC --version
- if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then export MERCURY_DASHBOARD_MODEL="Nightly"; elif [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]; then export MERCURY_DASHBOARD_MODEL="Experimental"; else export MERCURY_DASHBOARD_MODEL="Continuous"; fi
- ctest --version
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cat /proc/sys/kernel/yama/ptrace_scope; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ulimit -a; fi
- fi_info
script:
- ctest -VV --output-on-failure -S ./Testing/script/travis_script.cmake