-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
42 lines (36 loc) · 985 Bytes
/
.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
language: python
python:
- 3.6.10
env:
- BUILD_TYPE="Release"
before_install:
- sudo apt-get update
- sudo apt-get install gfortran
# Print NumPy version that is already installed by Travis CI:
- python -c "import numpy; print(numpy.__version__)"
- git clone --branch=master --depth=100 --quiet git://github.com/clawpack/clawpack
- cd clawpack
- git submodule init
- git submodule update
- rm -rf classic
- ln -s ../ classic
install:
- export PYTHONPATH=${PWD}:$PYTHONPATH
- export CLAW=${PWD}
- export FC=gfortran
- cd classic
before_script:
# Print CPU info for debugging purposes:
- cat /proc/cpuinfo
- gfortran -v
- /usr/bin/f95 -v
- echo "PYTHONPATH="$PYTHONPATH
- echo "CLAW="$CLAW
- echo "FC="$FC
script:
- cd $CLAW/classic/
- nosetests -sv
after_failure:
- for failed_test_path in *_output ; do cat $failed_test_path/run_output.txt ; cat $failed_test_path/error_output.txt ; done
notifications:
email: false