forked from OpenDrift/opendrift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (69 loc) · 2.78 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
language: python
addons:
apt:
packages:
- gfortran
python:
- 2.7
- 3.6
env:
- NUMPY=1.11 SCIPY=0.17 NETCDF=1.2.4 MATPLOTLIB=1.5 BASEMAP=1.0.8
- NUMPY=1.13.3 SCIPY=1.0 NETCDF=1.3.0 MATPLOTLIB=2.0 BASEMAP=1.1.0
- NUMPY=1.15.4 SCIPY=1.1 NETCDF=1.4.2 MATPLOTLIB=3.0.2 BASEMAP=1.2.0 XARRAY=0.11.2
- NUMPY=1.15.4 SCIPY=1.1 NETCDF=1.4.2 MATPLOTLIB=3.0.2 BASEMAP=1.2.0 # Bleeding edge
matrix:
fast_finish: true
# allow_failures:
# - env: NUMPY=1.11 SCIPY=0.17 NETCDF=1.2.4 MATPLOTLIB=1.5 BASEMAP=1.0.8
cache:
directories:
- $HOME/download/oillibrary
sudo: false
before_install:
- if [ $TRAVIS_PYTHON_VERSION == 2.7 ]; then
condaURL=https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh;
elif [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
condaURL=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh;
fi
- if [ ! -d $HOME/download/miniconda ]; then
mkdir -p $HOME/download;
cd $HOME/download;
wget -c $condaURL -O miniconda.sh;
chmod +x miniconda.sh;
./miniconda.sh -b -f -p $HOME/download/miniconda/;
cd ..;
fi
- echo $PATH
- echo $PYTHONPATH
- . $HOME/download/miniconda/etc/profile.d/conda.sh
- conda activate base
- conda create --yes --name OPENDRIFT
- conda activate OPENDRIFT
install:
- conda config --append channels conda-forge
- conda install -q --yes -c conda-forge python=$TRAVIS_PYTHON_VERSION;
- if [ ! -d $HOME/download/oillibrary ] && [ $TRAVIS_PYTHON_VERSION == 2.7 ]; then
mkdir -p $HOME/download/oillibrary;
cd $HOME/download/oillibrary;
git clone https://github.com/NOAA-ORR-ERD/OilLibrary.git;
cd OilLibrary;
conda install -q --yes -c conda-forge numpy=$NUMPY scipy=$SCIPY;
conda install -q --yes -c conda-forge SQLAlchemy=1.1;
conda install -q --yes -c noaa-orr-erd zope.sqlalchemy=0.7.7 awesome-slugify>=1.6.5;
conda install -q --yes -c conda-forge pytest>=2.9.2;
conda install -q --yes backports.functools_lru_cache>=1.5;
conda install -q --yes -c noaa-orr-erd unit_conversion>=2.5.4;
conda install -q --yes -c conda-forge setuptools_scm;
python setup.py install;
fi
- conda config --get channels;
- conda install -q --yes -c conda-forge future hdf4 numpy=$NUMPY scipy=$SCIPY matplotlib=$MATPLOTLIB netcdf4=$NETCDF configobj;
- conda install -q --yes -c conda-forge libgdal gdal coveralls pyproj basemap=$BASEMAP basemap-data-hires nomkl ffmpeg "x264<20180712";
- conda install -q --yes -c conda-forge netcdf4=$NETCDF dask;
- if [ "$XARRAY" ]; then
conda install -q --yes -c conda-forge xarray=$XARRAY;
fi
- cd /home/travis/build/OpenDrift/opendrift;
script: coverage run -m unittest discover -s tests/
after_success:
- coveralls