Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opting in ci-helpers for travis testing #1284

Merged
merged 1 commit into from
Apr 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 11 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ env:
- CONDA_ALL_DEPENDENCIES="numpy mmtf-python nose=1.3.7 mock six biopython networkx cython joblib nose-timer matplotlib netcdf4 scikit-learn scipy seaborn coveralls clustalw=2.1"
# Install griddataformats from PIP so that scipy is only installed in the full build (#1147)
- PIP_DEPENDENCIES='griddataformats'
- CONDA_CHANNELS='biobuilds MDAnalysis conda-forge'
- CONDA_CHANNEL_PRIORITY=True

matrix:
- NAME='minimal' PYTHON_VERSION=2.7 MAIN_CMD_OPTIONS='--with-memleak'

Expand Down Expand Up @@ -57,17 +60,9 @@ matrix:


install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $(pwd)/miniconda
- export PATH=$(pwd)/miniconda/bin:$PATH
- conda config --add channels biobuilds
- conda config --add channels MDAnalysis
- conda config --add channels conda-forge
- conda config --set always_yes yes
- conda create -q -n pyenv python=$PYTHON_VERSION
- source activate pyenv
- conda install ${CONDA_DEPENDENCIES}
- pip install ${PIP_DEPENDENCIES}
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh

# additional external tools (Issue #898) -- HOLE
- |
if [[ $NAME == 'full' ]]; then \
Expand All @@ -85,8 +80,8 @@ script:

after_success:
- if [[ $COVERALLS == 'true' ]]; then coveralls; fi
- |
test ${TRAVIS_PULL_REQUEST} == "false" && \
test ${TRAVIS_BRANCH} == ${GH_DOC_BRANCH} && \
test "${BUILD_DOCS}" == "true" && \
bash ${TRAVIS_BUILD_DIR}/maintainer/deploy_docs.sh
- if test ${TRAVIS_PULL_REQUEST} == "false" && \
test ${TRAVIS_BRANCH} == ${GH_DOC_BRANCH} && \
test "${BUILD_DOCS}" == "true"; then
bash ${TRAVIS_BUILD_DIR}/maintainer/deploy_docs.sh;
fi