This commit is contained in:
Michael James 2018-09-06 13:34:51 -06:00
parent 5caf8dc240
commit 4450fac43c

View file

@ -1,55 +1,38 @@
# After changing this file, check it on: # After changing this file, check it on:
# http://lint.travis-ci.org/ # http://lint.travis-ci.org/
language: python language: python
# sudo false implies containerized builds
sudo: false sudo: false
python: python:
- "2.7" - 2.7
- "3.4" - 3.6
- "3.5"
- "3.5-dev" # 3.5 development branch
- "3.6-dev" # 3.6 development branch
- "nightly" # currently points to 3.7-dev
env: env:
global: global:
- secure: "tHxj3+T83TBr3gQJINw8koSUbNBikKzIiV2AaPnLBE2F+xiweRhOSt0OhyP3HB1CluKfd9Ov0gKTzUsz0+ec08SCWpflT+013A7WG0jT5wtc2umCb7HGS2tpqOifjhXA91hm/88e4NRQ1wTLklNUTFC2JC3Lgjwd912gRlgmv7nU9cMO3w2qf2AtD83HSyIcUkYroQxtQijvSHlLZJUdhZzrvOgVMCtOq7fa5dggkmOtebAVE/GQcO10DfLMmx36rdzq79zRYhXc14Te+B7NR5aQb1CfyzO3FYohkBsaYXjXlgKMMcNC2chyzjja5ajDhbrMTDaeBZORs8SXue92jpFOJCyqTbfYhgiCfiX1NfZMqPyAwn+chMKy/jhK9lXV1xKASbhbnRXv9D5TETNNGgsEM/dj71RWgUKXItRKhznrSNl4gJhehPHzs8LvQdbk3sqepV3E6vl9FtWMsrMpm/8h/U1gxznIgpPYmdqMnjW26iHoDEw0Gq+yTcyCMD9x4s9JaqqYjdkIk1bJke2dr4l4uL36LFjUgx0Kr2Vg3Su2sNHj6sw9MujTeIAhnj+lg+rNZHKvS3Y3ulNY0v0v22+tZXo6zldOpvn+D06rPE/+IJMt94TyrLFksINFetNmRZpoCKVgeImES98vF2LAl3nmRct1G+GxgwvkYcrTyxE=" # List package dependencies for conda
- WHEELHOUSE="https://unidata-python.s3.amazonaws.com/wheelhouse/index.html" - CONDA_DEPS="pytest numpy shapely six"
- WHEELDIR="wheelhouse/" # package name for test invocation
- EXTRA_INSTALLS="test,cdm" - PACKAGENAME="python-awips"
- MPLLOCALFREETYPE="1"
matrix:
include:
- python: 2.7
env:
- VERSIONS="numpy==1.9.1"
- python: 3.4
env:
- python: 3.5
env:
- python: "3.6-dev"
env: PRE="--pre"
- python: nightly
env: PRE="--pre"
allow_failures:
- python: "3.6-dev"
- python: nightly
before_install: before_install:
# Shapely dependency needed to keep from using Shapely's manylinux wheels # Here we download miniconda and install the dependencies
# which use a different geos that what we build cartopy with on Travis - export MINICONDA=$HOME/miniconda
- pip install --upgrade pip; - export PATH="$MINICONDA/bin:$PATH"
- mkdir $WHEELDIR; - hash -r
- pip download -d $WHEELDIR ".[$EXTRA_INSTALLS]" $EXTRA_PACKAGES -f $WHEELHOUSE $PRE $VERSIONS; - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- touch $WHEELDIR/download_marker && ls -lrt $WHEELDIR; - bash miniconda.sh -b -f -p $MINICONDA
- travis_wait pip wheel -w $WHEELDIR $EXTRA_PACKAGES -f $WHEELHOUSE $PRE $VERSIONS; - conda config --set always_yes yes
- pip install $EXTRA_PACKAGES --upgrade --no-index -f file://$PWD/$WHEELDIR $VERSIONS; - conda update conda
- travis_wait pip wheel -w $WHEELDIR ".[$EXTRA_INSTALLS]" $EXTRA_PACKAGES -f $WHEELHOUSE $PRE $VERSIONS; - conda info -a
- rm -f $WHEELDIR/python-awips*.whl; - conda create -n testenv python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install $CONDA_DEPS
install: install:
- pip install ".[$EXTRA_INSTALLS]" --upgrade --no-index $PRE -f file://$PWD/$WHEELDIR $VERSIONS; - python setup.py install
script: script:
- if [[ $TRAVIS_PYTHON_VERSION == 3.4 || $TRAVIS_PYTHON_VERSION == 3.5 ]]; then py.test;else pytest; fi - pytest $PACKAGENAME