-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
executable file
·46 lines (35 loc) · 1.05 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
# This is the config file for building the Landsat578 project
# with Travis-ci.org.
dist: trusty
sudo: required
language: python
python:
- "3.5"
#notifications:
# email:
# on_failure: change
env:
# Default values for common packages, override as needed
global:
- PYTHON=3.5
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.yml
- pip install codecov coverage
script:
- coverage run setup.py test
notifications:
slack: nasa-roses-et:xJ8aulox7UZrK27kWwOmwlzR
after_success:
- codecov