forked from erdc/proteus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (60 loc) · 1.92 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
os: linux
dist: xenial
#sudo: required
language: python
env:
- TEST_PROFILE="proteus"
- TEST_PROFILE="1st_set"
- TEST_PROFILE="2nd_set"
python:
- 2.7
addons:
apt:
packages:
- gfortran
- libffi-dev
- libssl-dev
- python-lzma
- python3
install:
- git lfs pull
- ./stack/hit/bin/hit init-home
- ./stack/hit/bin/hit remote add http://levant.hrwallingford.com/hashdist_src --objects="source"
- ./stack/hit/bin/hit remote add http://levant.hrwallingford.com/hashdist_ubuntu_16_04 --objects="build"
- make stack/default.yaml
- pushd $HOME
- mkdir -p hashdist_src
- mkdir -p hashdist_bld
- rm -rf .hashdist/src .hashdist/bld
- ln -s $HOME/hashdist_src .hashdist/src
- ln -s $HOME/hashdist_bld .hashdist/bld
- popd
- pushd stack
- echo $PWD
- ls -l
- ./hit/bin/hit build -j 2 -v default.yaml
- popd
- export PATHSAVE=$PATH
- export PATH=$PWD/linux/bin:$PATH
- export LD_LIBRARY_PATH=$PWD/linux/lib:$LD_LIBRARY_PATH
- PROTEUS_OPT="-w -O2 -UNDEBUG" FC=gfortran CC=mpicc CXX=mpicxx make develop N=2
- export SSL_CERT_DIR=/etc/ssl/certs
#- ./linux/bin/pip3 install matplotlib
cache:
- timeout: 1000
- directories:
- $HOME/hashdist_src
- $HOME/hashdist_bld
script:
- export MPLBACKEND="AGG"
- if [[ "${TEST_PROFILE}" == "proteus" ]]; then PATH=./linux/bin:$PATH py.test -n 1 --dist=loadfile --forked -v proteus/tests --ignore proteus/tests/POD --ignore proteus/tests/MeshAdaptPUMI --cov=proteus; fi
# - if [[ "${TEST_PROFILE}" == "1st_set" ]]; then PATH=./linux/bin:$PATH py.test -n 1 --dist=loadfile --forked -v air-water-vv/Tests/1st_set; fi
# - if [[ "${TEST_PROFILE}" == "2nd_set" ]]; then PATH=./linux/bin:$PATH py.test -n 1 --dist=loadfile --forked -v air-water-vv/Tests/2nd_set; fi
- unset LD_LIBRARY_PATH #reset things so we don't break cache?
notifications:
email:
on_success: change
on_failure: always
after_success:
- ./linux/bin/pip3 install codecov
- ./linux/bin/codecov