-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (63 loc) · 3.24 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
language: C
#sudo: required
branches:
only:
# - master
- ^v\d+\.\d+(\.\d+)?(-\S*)?$
services:
- docker
env:
global:
- HDF5_INCLUDE_PATH=/usr/include/
matrix:
- SCRIPT_NAME="tests.py"
# - SCRIPT_NAME="tests2.py"
# - SCRIPT_NAME="tests3.py"
# - SCRIPT_NAME="tests4.py"
# - SCRIPT_NAME="tests5.py"
# - SCRIPT_NAME="tests6.py"
# - SCRIPT_NAME="failtests.py"
# - JOB_COMMAND="docker run -t stfc:regentparticledsl bash -c cd RegentParticleDSL && python3 tests.py"
# - JOB_COMMAND="cd RegentParticleDSL && python3 tests2.py"
# - JOB_COMMAND="cd RegentParticleDSL && python3 tests3.py"
# - JOB_COMMAND="cd RegentParticleDSL && python3 tests4.py"
# - JOB_COMMAND="cd RegentParticleDSL && python3 tests5.py"
# - JOB_COMMAND="docker run -t stfc:regentparticledsl bash -c \"cd RegentParticleDSL && python3 failtests.py\""
#- JOB_COMMAND="cd RegentParticleDSL && python3 failtests.py"
before_install:
# - docker build --build-arg BRANCH_NAME=${TRAVIS_BRANCH} --build-arg COMMIT_HASH=${TRAVIS_COMMIT} -t stfc:regentparticledsl tests/.
# - docker run -env SCRIPT_NAME=$SCRIPT_NAME -t stfc:regentparticledsl
- sudo apt-get update
- sudo apt-get install -y build-essential clang-3.5 git libclang-3.5-dev libncurses5-dev llvm-3.5-dev wget zlib1g-dev libhdf5-dev cmake vim python3 python3-pip hdf5-tools
- h5stat -V
- h5cc --version
- which h5cc
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/hdf5/serial
- export PATH=$PATH:/usr/bin
- export LIBRARY_PATH=$LD_LIBRARY_PATH
- export INCLUDE_PATH=/usr/include/hdf5/serial
- export C_INCLUDE_PATH=$INCLUDE_PATH
- export CPLUS_INCLUDE_PATH=$INCLUDE_PATH
- pip3 install --upgrade pip
- pip3 install numpy h5py
- git clone -b master https://github.com/StanfordLegion/legion.git
- LLVM_CONFIG=llvm-config-3.5 python3 legion/language/install.py --rdir=auto --hdf5 -j --no-terra-cmake
- ls -l legion/language/regent.py
- sudo ln -s legion/language/regent.py /usr/bin/regent
- ls -l legion/language/regent.py
- ls /usr/bin/regent
# - which regent
#-
#jobs:
# include:
script:
# - docker run -t stfc:regentparticledsl bash -c ${JOB_COMMAND}
# - echo "Hello ${JOB_COMMAND}"
# - cd RegentParticleDSL && python3 $SCRIPT_NAME
- python3 $SCRIPT_NAME
# - docker run -t stfc:regentparticledsl bash -c "cd RegentParticleDSL && python3 tests.py"
# - docker run -t stfc:regentparticledsl bash -c "cd RegentParticleDSL && python3 tests2.py"
# - docker run -t stfc:regentparticledsl bash -c "cd RegentParticleDSL && python3 tests3.py"
# - docker run -t stfc:regentparticledsl bash -c "cd RegentParticleDSL && python3 tests4.py"
# - docker run -t stfc:regentparticledsl bash -c "cd RegentParticleDSL && python3 tests5.py"
# - docker run -t stfc:regentparticledsl bash -c "cd RegentParticleDSL && python3 failtests.py"