forked from MDAnalysis/mdanalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
101 lines (89 loc) · 3.65 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
language: generic
# Only build for develop and master (and PRs)
branches:
only:
- master
- develop
os:
- linux
env:
global:
- secure: "HIj3p+p2PV8DBVg/KGUx6n83KwB0ASE5FwOn0SMB9zxnzAqe8sapwdBQdMdq0sXB7xT1spJqRxuxOMVEVn35BNLu7bxMLfa4287C8YXcomnvmv9xruxAsjsIewnNQ80vtPVbQddBPxa4jKbqgPby5QhhAP8KANAqYe44pIV70fY="
- GH_DOC_BRANCH=develop
- GH_REPOSITORY=github.com/MDAnalysis/mdanalysis.git
- GIT_CI_USER=TravisCI
- GIT_CI_EMAIL=TravisCI@mdanalysis.org
- MDA_DOCDIR=${TRAVIS_BUILD_DIR}/package/doc/html/html
- MDA_OPTPACKAGES=opt/packages
# Set default python version to avoid repetition later
- BUILD_DOCS=false
- PYTHON_VERSION=2.7
- MAIN_CMD="python ./testsuite/MDAnalysisTests/mda_nosetests --processes=2 --process-timeout=400 --no-open-files --with-timer --timer-top-n 50"
- MAIN_CMD_OPTIONS=""
- COVERALLS=false
- BUILD_CMD="pip install -v package/ && pip install testsuite/"
- CONDA_DEPENDENCIES="mmtf-python nose=1.3.7 mock six biopython networkx cython joblib nose-timer"
- CONDA_ALL_DEPENDENCIES="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 conda-forge'
- CONDA_CHANNEL_PRIORITY=True
- NUMPY_VERSION=stable
matrix:
- NAME='minimal' PYTHON_VERSION=2.7 MAIN_CMD_OPTIONS='--with-memleak'
matrix:
fast_finish: true
include:
- os: linux
env: NAME="Doc"
MAIN_CMD="cd package && python setup.py build_sphinx"
BUILD_DOCS=true
BUILD_CMD="cd ${TRAVIS_BUILD_DIR}/package && python setup.py build_ext --inplace"
CONDA_DEPENDENCIES=${CONDA_ALL_DEPENDENCIES}
- os: linux
env: NAME="Lint"
MAIN_CMD="pylint --rcfile=package/.pylintrc package/MDAnalysis && pylint --rcfile=package/.pylintrc testsuite/MDAnalysisTests"
BUILD_CMD=""
CONDA_DEPENDENCIES="pylint backports.functools_lru_cache"
PIP_DEPENDENCIES=""
- os: linux
env: NAME='full'
MAIN_CMD_OPTIONS='--with-coverage --cover-package MDAnalysis'
CONDA_DEPENDENCIES=${CONDA_ALL_DEPENDENCIES}
COVERALLS='true'
- os: osx
env: NAME='osx'
CONDA_DEPENDENCIES=${CONDA_ALL_DEPENDENCIES}
- os: linux
env: NAME='old numpy'
NUMPY_VERSION=1.10.4
CONDA_DEPENDENCIES=${CONDA_ALL_DEPENDENCIES}
- os: linux
env: NAME='numpy dev'
NUMPY_VERSION=dev
CONDA_DEPENDENCIES=${CONDA_ALL_DEPENDENCIES}
EVENT_TYPE='cron'
install:
- 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 \
bash ./maintainer/install_hole.sh $TRAVIS_OS_NAME "${HOME}/${MDA_OPTPACKAGES}"; \
HOLE_BINDIR="${HOME}/${MDA_OPTPACKAGES}/hole2/exe"; \
export PATH=${PATH}:${HOLE_BINDIR}; \
fi
- if [[ $BUILD_DOCS == "true" ]] ; then conda install sphinx=1.5.1; fi
- eval $BUILD_CMD
script:
- cd ${TRAVIS_BUILD_DIR}
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ulimit -S -n 2048; fi
- echo $MAIN_CMD $MAIN_CMD_OPTIONS
- eval $MAIN_CMD $MAIN_CMD_OPTIONS
after_success:
- if [[ $COVERALLS == 'true' ]]; then coveralls; fi
- 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