This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (53 loc) · 1.67 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
# Based on: http://conda.pydata.org/docs/travis.html
sudo: false
# Travis-CI does not currently support Python and Mac OS X
language: c
os:
- linux
- osx
env:
- PYTHON_VERSION=3.6
matrix:
allow_failures:
- os: osx
before_install:
# Set the anaconda environment
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$PYTHON_VERSION" == "2.7" ]]; then
curl https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -o miniconda.sh;
else
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh;
fi
else
if [[ "$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
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 info -a
# create and activate a test-environment
- conda create -q -n test-environment python=$PYTHON_VERSION
- source activate test-environment
install:
- conda config --add channels conda-forge
- conda install -q numpy matplotlib h5py lxml gdal
- pip install --no-deps -e .
script:
- python setup.py test
after_script:
# If tests are successful, create a source distribution.
- python setup.py sdist
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
python setup.py bdist_wheel;
fi
#addons:
# artifacts:
# debug: true
# paths:
# - ./dist