forked from clawpack/geoclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (41 loc) · 1.15 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
language: python
python:
- 3.6.10
env:
- BUILD_TYPE="Release"
before_install:
- sudo apt-get update
- sudo apt-get install gfortran liblapack-pic liblapack-dev libnetcdf-dev libnetcdff-dev
- pip install netCDF4
- pip install xarray
- pip install scipy
- git clone --branch=master --depth=100 --quiet git://github.com/clawpack/clawpack
- cd clawpack
- git submodule init
- git submodule update
- rm -rf geoclaw
- ln -s ../ geoclaw
# Print versions being used
- python -c "import numpy; print(numpy.__version__)"
- python -c "import netCDF4; print(netCDF4.__version__)"
install:
- export PYTHONPATH=${PWD}:$PYTHONPATH
- export CLAW=${PWD}
- export FC=gfortran
- export NETCDF4_DIR=/usr
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
- echo "NETCDF4_DIR="$NETCDF4_DIR
script:
- cd $CLAW/geoclaw
- 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