forked from GeoscienceAustralia/Wind_multipliers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (46 loc) · 1.61 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
branches:
except:
- notebooks
python:
- "2.7"
# install system dependencies
before_install:
- sudo apt-get update -qq
- sudo apt-get install build-essential
- sudo apt-get install libhdf5-serial-dev
- sudo apt-get install libnetcdf-dev
- sudo apt-get install python-dev
- sudo apt-get install libgeos-c1 libgeos-dev
- sudo apt-get install libatlas-base-dev gfortran
- sudo apt-get install libblas3gf
- sudo apt-get install libc6
- sudo apt-get install libgcc1
- sudo apt-get install libgfortran3
- sudo apt-get install liblapack3gf
- sudo apt-get install libstdc++6
# install Python dependencies
install:
# - sudo pip install conda
# - sudo conda init
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
-O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- deps='pip numpy scipy matplotlib nose coverage numexpr gdal'
- conda create -p $HOME/py --yes $deps "python=$TRAVIS_PYTHON_VERSION"
- export PATH=$HOME/py/bin:$PATH
- pip install pycurl
- pip -v install -r requirements.txt
branches:
except:
- notebooks
script:
- nosetests -v --with-coverage --exe
notifications:
slack:
secure: Ckmwy59ytS1GPRZ5Tmvzad6+W9AzvfjNJAa4orgdKS/WktoK4b9W2rbTHxi8V3hBLIDUCso8vIQi3rVXpWY3cFMvb/uRbXO4GiIW1iua3CKjxd+dEw4E6/8DEknS1qdGJRDhN9/3ucZNvSGHY3EQQDfxb/R+OGd2jT6+jed8pss=