-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
91 lines (73 loc) · 2.16 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
language: cpp
os: linux
compiler:
- cpp
jobs:
include:
- dist: bionic
env: BUILD='debug'
name: 'Mesher (Debug)'
script: ./TESTING/test_mesher.sh;
# - dist: bionic
# env: BUILD='debug'
# name: 'Solver, internal model (Debug)'
# script: ./TESTING/test_internal.sh;
- dist: bionic
env: BUILD='coverage'
name: 'Solver, coverage'
script: travis_wait 30 ./TESTING/test_debug.sh;
- dist: bionic
env: BUILD='release'
name: 'Mesher (Release)'
script: ./TESTING/test_mesher.sh;
- dist: bionic
env: BUILD='release'
name: 'Solver, internal model (Release)'
script: ./TESTING/test_internal.sh;
- dist: bionic
env: BUILD='release'
name: 'Solver, external model (Release)'
script: ./TESTING/test_external.sh;
addons:
apt:
packages:
- gfortran
- gcc
- libopenmpi-dev
- libnetcdff-dev
- openmpi-bin
before_install:
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- export TRAVIS_PYTHON_VERSION=3.8
- export TEST_DIR=$TRAVIS_BUILD_DIR/TESTING
- hash -r
# Install conda only if necessary
- source "$MINICONDA/etc/profile.d/conda.sh" || { wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -f -p $MINICONDA; }
- source "$MINICONDA/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda config --add channels conda-forge
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION click netcdf4 scipy
- conda activate test-environment
- pip install --user cpp-coveralls
install:
- ./copytemplates.sh $BUILD
- make -j 4
after_success:
- if [[ $BUILD == 'coverage' ]]; then
coveralls --exclude SOLVER/UTILS --exclude MESHER/UTILS --exclude TESTING --exclude MANUAL --gcov-options '\-lp';
fi
after_failure:
- tail -n 25 $TRAVIS_BUILD_DIR/runs/*/P?/OUTPUT
- cd $TRAVIS_BUILD_DIR/runs/TEST01/PX
- mpirun -n 4 ./axisem
cache:
apt: true
directories:
#- $HOME/travis
- $HOME/miniconda