forked from StanfordLegion/legion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (75 loc) · 2.43 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
language: cpp
sudo: required
dist: trusty
group: edge # Try new Travis image
os:
- linux
- osx
compiler:
- gcc
- clang
env:
global:
- WARN_AS_ERROR=1
#- MAKEFLAGS="-s"
- REALM_SYNTHETIC_CORE_MAP=""
- REALM_BACKTRACE=1
- TEST_FUZZER=0
- SHORT=1
matrix:
- CC_FLAGS="-std=c++98" DEBUG=0 USE_CMAKE=1 TEST_REGENT=0 TEST_CTEST=1
- CC_FLAGS="-std=c++98" DEBUG=0 TEST_LEGION_CXX=0 TEST_REALM=0 REGENT_JOBS=4
- CC_FLAGS="-std=c++98 -DPRIVILEGE_CHECKS -DBOUNDS_CHECKS" DEBUG=1 TEST_REGENT=0
- CC_FLAGS="-std=c++98 -DLEGION_SPY" DEBUG=1 USE_SPY=1 TEST_LEGION_CXX=0 TEST_REALM=0 REGENT_INCREMENTAL=1
#- CC_FLAGS="-std=c++98" USE_GASNET=1 USE_HDF=1 USE_CMAKE=1 TEST_REGENT=0
- CC_FLAGS="-std=c++98" DEBUG=1 USE_HDF=1 TEST_REGENT=0
- CC_FLAGS="-std=c++11" DEBUG=0 TEST_REGENT=0
matrix:
exclude:
- os: osx
compiler: gcc
# blacklist some branches
branches:
only:
- stable
- master
- dma
- deppart
before_install:
- export THREADS=2
- |
if [[ "$(uname)" = "Linux" ]]; then
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo add-apt-repository ppa:pypy/ppa -y
sudo apt-get update -qq
# OpenMPI packages: openmpi-bin libopenmpi-dev
# MPICH packages: mpich2 libmpich-dev
sudo apt-get install -qq g++-4.9 clang-3.5 libclang-3.5-dev llvm-3.5-dev mpich2 libmpich-dev libblas-dev liblapack-dev libhdf5-dev pypy
fi
- |
if [[ "$(uname)" = "Darwin" ]]; then
brew update
brew install pypy [email protected] hdf5
export CLANG="$(brew --prefix)/opt/[email protected]/bin/clang"
export LLVM_CONFIG="$(brew --prefix)/opt/[email protected]/bin/llvm-config"
export CXX="$(brew --prefix)/opt/[email protected]/bin/clang++"
fi
- if [[ "$(uname)" = "Linux" && "$CXX" = "g++" ]]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [[ "$(uname)" = "Linux" && "$CXX" = "clang++" ]]; then export CXX="clang++-3.5" CC="clang-3.5"; fi
- if [[ "$(uname)" = "Linux" ]]; then export LLVM_CONFIG="llvm-config-3.5"; fi
- |
if [[ "$USE_GASNET" -eq 1 ]]; then
export CONDUIT=mpi
export GASNET_ROOT="$PWD/gasnet/release"
# OpenMPI:
# export LAUNCHER="mpirun -n 2 -bind-to none -x TERRA_PATH -x INCLUDE_PATH -x LD_LIBRARY_PATH -x LG_RT_DIR"
# MPICH:
export LAUNCHER="mpirun -n 2"
unset WARN_AS_ERROR
git clone https://github.com/StanfordLegion/gasnet.git gasnet
pushd gasnet
make -j$THREADS
popd
fi
script:
- ./test.py -j2