Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nco/pynco
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Hamman committed Aug 3, 2017
2 parents ea90e6f + 32b3f1a commit 6bda358
Show file tree
Hide file tree
Showing 11 changed files with 487 additions and 238 deletions.
59 changes: 39 additions & 20 deletions .travis.yml
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
Loading

0 comments on commit 6bda358

Please sign in to comment.