diff options
| author | Nadia Dencheva <nadia.dencheva@gmail.com> | 2016-08-04 17:42:01 -0400 |
|---|---|---|
| committer | Nadia Dencheva <nadia.dencheva@gmail.com> | 2016-08-04 17:42:01 -0400 |
| commit | 4b65b226085ccb9e665a5866023d8114f7438188 (patch) | |
| tree | 7183ed93c0624164930069bf5fedcd582dce84b6 /.travis.yml | |
| parent | 86d1bc5a77491770d45b86e5cf18b79ded68fb9b (diff) | |
| download | stwcs_hcf-4b65b226085ccb9e665a5866023d8114f7438188.tar.gz | |
restructure and add stwcs tests
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..30b8711 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,52 @@ +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 + |
