-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
49 lines (48 loc) · 1.71 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
language: python
branches:
except:
- notebooks
python:
- "3.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 python3-dev
- sudo apt-get install libgeos-c1v5 libgeos-dev
- sudo apt-get install libatlas-base-dev gfortran
- sudo apt-get install libblas3
- sudo apt-get install libc6
- sudo apt-get install libgcc1
- sudo apt-get install libgfortran3
- sudo apt-get install liblapack3
- sudo apt-get install libstdc++6
# install Python dependencies
install:
# - sudo pip install conda
# - sudo conda init
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- 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
- conda info -a
- deps='pip numpy scipy nose coverage numexpr gdal mpi4py openssh'
- conda create -p $HOME/py --yes $deps "python=$TRAVIS_PYTHON_VERSION" -c conda-forge
- export PATH=$HOME/py/bin:$PATH
- pip install pycurl
- pip -v install -r requirements.txt
- export PYTHONPATH="${PYTHONPATH}:$HOME:${TRAVIS_BUILD_DIR}/utilities:${TRAVIS_BUILD_DIR}/topographic:${TRAVIS_BUILD_DIR}/tests:${TRAVIS_BUILD_DIR}/tests/test_topographic"
#- echo "${PYTHONPATH}"
#- echo "${TRAVIS_BUILD_DIR}"
branches:
except:
- notebooks
script:
- nosetests -v --with-coverage --exe
notifications:
slack:
secure: Ckmwy59ytS1GPRZ5Tmvzad6+W9AzvfjNJAa4orgdKS/WktoK4b9W2rbTHxi8V3hBLIDUCso8vIQi3rVXpWY3cFMvb/uRbXO4GiIW1iua3CKjxd+dEw4E6/8DEknS1qdGJRDhN9/3ucZNvSGHY3EQQDfxb/R+OGd2jT6+jed8pss=