language: c os: - linux - osx sudo: false env: # CONDA_JWST_DEPENDENCIES is used because CONDA_DEPENDENCIES is not truly global. global: - MAIN_CMD='python setup.py' - CONDA_CHANNELS='http://ssb.stsci.edu/conda-dev' - CONDA_DEPENDENCIES='pytest jwst sphinx=1.3.5' - CONDA_JWST_DEPENDENCIES='pytest stsci-jwst sphinx=1.3.5' - PIP_DEPENDENCIES="" - CRDS_SERVER_URL='https://jwst-crds.stsci.edu' - CRDS_PATH='/tmp/crds_cache' matrix: - PYTHON_VERSION=2.7 SETUP_CMD='install' - PYTHON_VERSION=2.7 SETUP_CMD='test' - PYTHON_VERSION=3.5 SETUP_CMD='install' - PYTHON_VERSION=3.5 SETUP_CMD='test' matrix: include: # pep8 check (only once, i.e. "os: linux") - os: linux env: PYTHON_VERSION=3.5 MAIN_CMD='pep8 --count' SETUP_CMD='jwst' TEST_CMD='pep8 --version' CONDA_DEPENDENCIES=$CONDA_JWST_DEPENDENCIES # build sphinx documentation - os: linux env: PYTHON_VERSION=3.5 MAIN_CMD='docs/mkdocs.sh' SETUP_CMD='' CONDA_DEPENDENCIES=$CONDA_JWST_DEPENDENCIES allow_failures: # pep8 will fail for numerous reasons. Ignore it. - env: PYTHON_VERSION=3.5 MAIN_CMD='pep8 --count' SETUP_CMD='jwst' TEST_CMD='pep8 --version' CONDA_DEPENDENCIES=$CONDA_JWST_DEPENDENCIES install: - git clone git://github.com/astropy/ci-helpers.git - source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh script: - $MAIN_CMD $SETUP_CMD