forked from spacetelescope/jwst_validation_notebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 1.47 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: python
env:
global:
- CONDA_DEPENDENCIES="astropy scipy matplotlib jupyter pandas"
- PIP_DEPENDENCIES="git+https://github.com/spacetelescope/jwst.git"
- MC_URL=https://repo.continuum.io/miniconda
- CRDS_SERVER_URL='https://jwst-crds.stsci.edu'
- CRDS_PATH='/tmp/crds_cache'
- PYTHON_VERSION="3.6"
- MINICONDA_VERSION="4.5.4"
- CONDA_OS="Linux"
jobs:
include:
- name: check notebooks
script: cd jwst_validation_notebooks; python -m "nbpages.check_nbs" --commit-range="${TRAVIS_COMMIT_RANGE/.../..}" # see https://github.com/travis-ci/travis-ci/issues/4596 for why this bit in TRAVIS_COMMIT_RANGE is necessary
install:
# Now trying to do this with miniconda directly instead of via ci-helpers
# We do this conditionally because it saves us some downloading if the
# version is the same.
- wget $MC_URL/Miniconda3-$MINICONDA_VERSION-$CONDA_OS-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# - git clone git://github.com/spacetelescope/jwst_validation_notebooks.git ./validation
- conda env create -f environment.yml
- conda activate jwst_validation_notebooks
- pip install git+https://github.com/eteq/nbpages.git#egg=nbpages
- echo "Finished Conda Install"