2018-09-05 15:52:38 -06:00
|
|
|
# After changing this file, check it on:
|
|
|
|
# http://lint.travis-ci.org/
|
2018-09-06 13:34:51 -06:00
|
|
|
|
2018-09-05 15:52:38 -06:00
|
|
|
language: python
|
2018-09-06 13:34:51 -06:00
|
|
|
|
|
|
|
# sudo false implies containerized builds
|
2018-09-05 15:52:38 -06:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
python:
|
2018-09-06 13:34:51 -06:00
|
|
|
- 2.7
|
|
|
|
- 3.6
|
2018-09-05 15:52:38 -06:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2018-09-06 13:34:51 -06:00
|
|
|
# List package dependencies for conda
|
|
|
|
- CONDA_DEPS="pytest numpy shapely six"
|
|
|
|
# package name for test invocation
|
|
|
|
- PACKAGENAME="python-awips"
|
2018-09-05 15:52:38 -06:00
|
|
|
|
|
|
|
before_install:
|
2018-09-06 13:34:51 -06:00
|
|
|
# Here we download miniconda and install the dependencies
|
|
|
|
- export MINICONDA=$HOME/miniconda
|
|
|
|
- export PATH="$MINICONDA/bin:$PATH"
|
|
|
|
- hash -r
|
|
|
|
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
|
|
|
|
- bash miniconda.sh -b -f -p $MINICONDA
|
|
|
|
- conda config --set always_yes yes
|
|
|
|
- conda update conda
|
|
|
|
- conda info -a
|
|
|
|
- conda create -n testenv python=$TRAVIS_PYTHON_VERSION
|
|
|
|
- source activate testenv
|
|
|
|
- conda install $CONDA_DEPS
|
2018-09-05 15:52:38 -06:00
|
|
|
|
|
|
|
install:
|
2018-09-06 13:34:51 -06:00
|
|
|
- python setup.py install
|
2018-09-05 15:52:38 -06:00
|
|
|
|
2018-09-06 13:29:48 -06:00
|
|
|
script:
|
2018-09-06 13:34:51 -06:00
|
|
|
- pytest $PACKAGENAME
|