forked from erdc/proteus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
112 lines (108 loc) · 3.5 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
addons:
apt:
packages:
- gfortran
- libffi-dev
- libssl-dev
- python-lzma
- python3
- doxygen
- graphviz
cache:
- timeout: 1000
notifications:
email:
on_success: change
on_failure: always
after_success:
- conda install codecov
- codecov
jobs:
include:
- stage: test
name: "hashdist linux"
os: linux
dist: xenial
language: python
python: 2.7
env: TEST_PROFILE="proteus-hashdist"
install:
- git lfs pull
- ./get_xtensor.sh
- ./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=1
- export SSL_CERT_DIR=/etc/ssl/certs
- #./linux/bin/pip3 install matplotlib
script:
- export MPLBACKEND="AGG"
- PATH=./linux/bin:$PATH py.test -n 1 --dist=loadfile --forked -v proteus/tests --ignore proteus/tests/POD --ignore proteus/tests/MeshAdaptPUMI -k 'not test_damBreak_solver_options' --cov=proteus
- stage: test
name: "conda linux"
os: linux
dist: xenial
language: python
python: 3.7
env: TEST_PROFILE="proteus-conda"
install:
- git lfs pull
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda env create -f environment-dev.yml
- conda activate proteus-dev
- make develop-conda N=1
script:
- export MPLBACKEND="AGG"
- py.test -n 1 --dist=loadfile --forked -v proteus/tests --ignore proteus/tests/POD --ignore proteus/tests/MeshAdaptPUMI --cov=proteus
deploy:
provider: script
script: bash ./scripts/deploy.sh docs
skip_cleanup: true
on:
branch: master
- stage: test
name: "conda osx"
os: osx
osx_image: xcode11.3
env: TEST_PROFILE="proteus-conda-osx"
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda env create -f environment-dev.yml
- conda activate proteus-dev
- pip install -v -e .
script:
- export MPLBACKEND="AGG"
- git lfs install
- git lfs pull
- cd proteus/tests/ci
- parun poisson_3d_tetgen_p.py poisson_3d_tetgen_c0p1_n.py -l 5 -v
# - py.test -n 1 --dist=no --forked -v proteus/tests --ignore proteus/tests/POD --ignore proteus/tests/MeshAdaptPUMI --cov=proteus