-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
74 lines (73 loc) · 2.17 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
notifications:
email:
language: python
os: linux
dist: xenial
sudo: false
compiler: gcc
services:
- xvfb
matrix:
include:
- env: GSFLOW
python: 3.6
cache:
pip: true
directories:
- "$HOME/.cache/pip"
- "$HOME/.local"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gfortran-8
- g++-8
- python-pip
- libhdf5-serial-dev
- netcdf-bin
- libnetcdf-dev
- gdal-bin
- libgdal-dev
env:
global:
- NO_NET=1
install:
- if [[ ! -d "$HOME/.local/bin" ]]; then mkdir "$HOME/.local/bin"; fi
- export PATH="$HOME/.local/bin:$PATH"
- ln -fs /usr/bin/gfortran-8 "$HOME/.local/bin/gfortran" && gfortran --version
- ls -l /usr/bin/gfortran-8
- ln -fs /usr/bin/gcc-8 "$HOME/.local/bin/gcc" && gcc --version
- ls -l /usr/bin/gcc-8
- ln -fs /usr/bin/g++-8 "$HOME/.local/bin/g++" && g++ --version
- ls -l /usr/bin/g++-8
- export CXX="g++"
- pip install -r requirements.travis.txt
- pip install --upgrade numpy
- pip install requests
- pip install https://github.com/modflowpy/pymake/zipball/master
- pip install shapely[vectorize]
- pip install nose-timer
- pip install https://github.com/modflowpy/flopy/zipball/develop
- pip install https://github.com/pygsflow/pygsflow/zipball/master
script:
- export PYTHONPATH=$PYTHONPATH:.
- echo python path; python -c "from __future__ import print_function; import sys;
print(sys.path)"
- python -c "import os; is_travis = 'TRAVIS' in os.environ; print('TRAVIS {}'.format(is_travis))"
- echo flopy version; python -c "from __future__ import print_function; import flopy;
print(flopy.__version__)"
- echo numpy version; python -c "import numpy; print(numpy.version.version)"
- echo pandas version; python -c "import pandas as pd; print(pd.__version__)"
- echo pyshp; python -c "import shapefile; print(shapefile.__version__)"
- echo nosetests version; nosetests --version
- cd autotest
- chmod u+x make_linux_gfortran.sh
- sed -i -e 's/\r$//' make_linux_gfortran.sh
- ./make_linux_gfortran.sh
- cd ..
- travis_wait 90 nosetests -v --with-id --with-timer -w ./autotest
- cd autotest