-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
executable file
·49 lines (38 loc) · 1.12 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
# This is the config file for building the Landsat578 project
# with Travis-ci.org.
dist: precise
sudo: required
language: python
python:
- "2.7"
- "3.6"
notifications:
email:
on_failure: change
env:
# Default values for common packages, override as needed
global:
- PYTHON=2.7
- PYTHON=3.6
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
- 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_conda.yml
- pip install codecov coverage
script:
- coverage run setup.py test
notifications:
# slack: nmbgmr:6025BpWw62bzddqVqFrtGLOF
# slack: nasa-roses-et:0LxEURt2iGM02RuMNlkextib
after_success:
- codecov