-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (35 loc) · 1.14 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
# This is the config file for building GDAL and running its autotest suite
# with Travis-ci.org
dist: precise
sudo: required
language: python
python:
- "2.7"
notifications:
email:
on_failure: change
env:
# Default values for common packages, override as needed
global:
- PYTHON=2.7
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda2/bin:$PATH
- export GDAL_DATA=/home/miniconda2/envs/share/gdal:$GDAL_DATA
- conda update --yes --quiet conda
# Build package list to avoid empty package=versions; only needed for versioned pacakges
- PKGS="python=${PYTHON}"
- PKGS="${PKGS} numpy"; if [ ${NUMPY} ]; then PKGS="${PKGS}=${NUMPY}"; fi
- PKGS="${PKGS} pip";
install:
- conda create --yes --quiet -n landsatenv ${PKGS} ${OPTIONAL}
- source activate landsatenv
- conda install --yes --file requirements.yml
- pip install gdal
script:
- export GDAL_DATA=/home/travis/miniconda2/envs/landsatenv/share/gdal
- python setup.py test
notifications:
slack: nmbgmr:6025BpWw62bzddqVqFrtGLOF