-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
49 lines (45 loc) · 1.91 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
# Config file for automatic testing at travis-ci.org
# This file will be regenerated if you run travis_pypi_setup.py
language: python
python: 3.6
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- source activate test-environment
# install requirements, one way or another
- while read requirement; do conda install --yes $requirement || pip install $requirement; done < requirements.txt
- conda install -c conda-forge xerces-c==3.2.0 gdal libgdal rasterio poppler==0.52.0
# hack to fix environment https://github.com/ContinuumIO/anaconda-issues/issues/1450
before_install:
- sudo apt-get update
- sudo apt-get install libxerces-c3.1 netcdf-bin
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-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
- conda config --add channels conda-forge
- conda install xerces-c
# Useful for debugging any issues with conda
- conda info -a
# Replace dep1 dep2 ... with your dependencies
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy vtk netcdf4 rasterio poppler
- while read requirement; do conda install -n test-environment --yes $requirement || pip install $requirement; done < requirements_dev.txt
script: make test
# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
group: deprecated-2017Q4
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: SiggyF
password:
secure: PLEASE_REPLACE_ME
on:
tags: true
repo: openearth/flowmap
condition: $TOXENV == py36