forked from choderalab/perses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (63 loc) · 2.56 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
language: c
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
#- g++
#- gfortran
#- valgrind
#- csh
#- g++-multilib
#- gcc-multilib
branches:
except:
- /^(?i:notest)-.*$/
install:
#add random sleep from 1-10s to try to prevent overloading the anaconda servers
- sleep $[ ( $RANDOM % 10 ) + 1 ]s
- source devtools/travis-ci/install.sh
- export PYTHONUNBUFFERED=true
- export CC=gcc
- export CXX=g++
# Unpack encrypted OpenEye license file
- if [ "$TRAVIS_SECURE_ENV_VARS" == true ]; then openssl aes-256-cbc -K $encrypted_e79f29b655ae_key -iv $encrypted_e79f29b655ae_iv -in devtools/travis-ci/oe_license.txt.enc -out $OE_LICENSE -d; fi
- if [ "$TRAVIS_SECURE_ENV_VARS" == false ]; then echo "OpenEye license will not be installed in forks."; fi
script:
# Create a test environment
- conda create --yes -n test python=$python
# Activate the test environment
- source activate test
# Add org channel
- conda config --add channels ${ORGNAME}
# Add omnia dev channels
- conda config --add channels https://conda.anaconda.org/omnia/label/dev
# Build the recipe
- conda build devtools/conda-recipe
# Install the package
- conda install --yes --use-local ${PACKAGENAME}-dev
# Install testing dependencies
- conda install --yes --quiet pip nose nose-timer
# Install and test openeye tools
- pip install $OPENEYE_CHANNEL OpenEye-toolkits==2016.6.1 && python -c "import openeye; print(openeye.__version__)"
# Test the package
- cd devtools && nosetests perses --nocapture --verbosity=3 --with-timer -a '!advanced' && cd ..
env:
matrix:
# Allfast tests for python 2.7
- python=2.7 CONDA_PY=27 TESTSYSTEMS="ValenceSmallMoleculeLibraryTestSystem ImidazoleProtonationStateTestSystem"
- python=3.4 CONDA_PY=34 TESTSYSTEMS="ValenceSmallMoleculeLibraryTestSystem"
- python=3.5 CONDA_PY=35 TESTSYSTEMS="ValenceSmallMoleculeLibraryTestSystem"
global:
- ORGNAME="omnia"
- OE_LICENSE="$HOME/oe_license.txt"
- PACKAGENAME="perses"
# Location of decrypted OpenEye license file
- OE_LICENSE="$HOME/oe_license.txt"
- OPENEYE_CHANNEL="-i https://pypi.anaconda.org/OpenEye/simple"
# encrypted BINSTAR_TOKEN for push of dev package to binstar
- secure: "RRvLDPu9mPoNaRWIseaJdgShOXI+PaHPWKAIJvW7VYWcAS6iEN7W4Fj4zD5hkocQxc3ou97EtkgID+ApH10bSGKxCykyU0urSY9jsSOJX2m0AE19X0dVr6ySIQkwCWE6kUMVlvQYQo80fM2EMElD+btr4G9XBAhArAO7HvZHkoQ="
after_success:
- echo "after_success"
- if [ "$TRAVIS_SECURE_ENV_VARS" == true ]; then source devtools/travis-ci/after_success.sh; fi