-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:nco/pynco
- Loading branch information
Showing
11 changed files
with
487 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,54 @@ | ||
language: python | ||
|
||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- 2.7 | ||
- 3.5 | ||
- 3.6 | ||
|
||
env: | ||
- NCO_VERSION=4.5.5 | ||
- NCO_VERSION=4.6.1 | ||
- NCO_VERSION=latest | ||
|
||
before_install: | ||
- sudo apt-get update | ||
- sudo apt-get install libnetcdf-dev nco | ||
# We do this conditionally because it saves us some downloading if the | ||
# version is the same. | ||
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then | ||
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; | ||
else | ||
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
fi | ||
# Install miniconda | ||
# ----------------- | ||
- export CONDA_BASE=http://repo.continuum.io/miniconda/Miniconda | ||
- wget ${CONDA_BASE}3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- hash -r | ||
|
||
# Create the basic testing environment | ||
# ------------------------------------ | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
# Useful for debugging any issues with conda | ||
- conda info -a | ||
- conda config --set show_channel_urls True | ||
- conda config --add create_default_packages pip | ||
- conda update --quiet conda | ||
|
||
# Add 3rd party channels | ||
# ------------------------------------ | ||
- conda config --add channels conda-forge | ||
|
||
# Make Conda test environment | ||
- conda env create --file ci/requirements-$TRAVIS_PYTHON_VERSION.yml | ||
# Create our environment | ||
# ------------------------------------ | ||
- conda env create --name test_env --quiet --file ci/requirements-$TRAVIS_PYTHON_VERSION.yml | ||
- source activate test_env | ||
- if [ "${NCO_VERSION}" == "latest" ]; | ||
then conda install nco; | ||
else conda install nco==${NCO_VERSION}; | ||
fi | ||
|
||
# Debugging information | ||
# ------------------------------------ | ||
- conda info -a | ||
- conda list --export | ||
- which ncks ncdump | ||
|
||
# Install pynco | ||
# ------------------------------------ | ||
- python setup.py install | ||
|
||
# command to run tests | ||
script: | ||
- python -c "from nco import Nco" | ||
- py.test | ||
- py.test -rxs -s -v |
Oops, something went wrong.