os: - linux - osx language: python - "2.7" sudo: false before_install: - if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then curl -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh ; fi - export PATH="$HOME/miniconda/bin:$PATH" - if [ ! -d ${HOME}/miniconda ]; then bash miniconda.sh -b -p $HOME/miniconda ; fi - hash -r - conda config --set always_yes yes --set changeps1 no - conda update -y -q conda script: - conda create -q -n py2 -c cdat/label/nightly -c conda-forge -c cdat -c pcmdi vcs vcsaddons cdp mesalib image-compare flake8 nose cia "proj4<5" "python<3" - conda create -q -n py3 -c cdat/label/nightly -c conda-forge -c cdat -c pcmdi vcs vcsaddons cdp mesalib image-compare flake8 nose cia "proj4<5" "python>3" # Useful for debugging any issues with conda - conda info -a - source activate py2 - python setup.py install - if [ "$TRAVIS_OS_NAME" = "linux" ]; then python run_tests.py -v2 ; fi - git clean -fd - source activate py3 - python setup.py install - if [ "$TRAVIS_OS_NAME" = "linux" ]; then python run_tests.py -v2 ; fi - source deactivate after_success: - if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then conda install -n root conda-build anaconda-client && bash -x recipes/pcmdi_metrics/conda_upload.sh; fi