forked from choderalab/openmoltools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (73 loc) · 2.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
language: c
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++
- gfortran
- valgrind
- csh
- g++-multilib
- gcc-multilib
branches:
only:
- master
before_install:
# Configure environment.
- source devtools/travis-ci/install.sh
- export PYTHONUNBUFFERED=true
- echo $TRAVIS_SECURE_ENV_VARS
# Unpack encrypted OpenEye license file
- if [ "$TRAVIS_SECURE_ENV_VARS" == true ] ; then openssl aes-256-cbc -K $encrypted_751d8ffa39c6_key -iv $encrypted_751d8ffa39c6_iv -in oe_license.txt.enc -out $HOME/oe_license.txt -d; fi
- if [ "$TRAVIS_SECURE_ENV_VARS" == false ] ; then echo "OpenEye license will not be installed in pull request."; fi
install:
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
# Add the conda-forge channel
- conda config --add channels conda-forge
# Update everything
- conda update --quiet --yes --all
# Install OpenEye toolkit
- conda install --yes $OPENEYE_CHANNEL openeye-toolkits && python -c "import openeye; print(openeye.__version__)"
# 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 nose nose-timer
- conda install --yes --quiet openmmtools
- conda install --yes --quiet packmol
- conda install --yes --quiet rdkit
# Test the package
- cd devtools && nosetests $PACKAGENAME --nocapture --verbosity=2 --with-timer -a '!slow' && cd ..
env:
matrix:
# OpenEye production
- CONDA_PY=35 python=3.5 OPENEYE_CHANNEL="-c openeye"
- CONDA_PY=36 python=3.6 OPENEYE_CHANNEL="-c openeye"
# OpenEye beta
- CONDA_PY=35 python=3.5 OPENEYE_CHANNEL="-c openeye/label/dev"
- CONDA_PY=36 python=3.6 OPENEYE_CHANNEL="-c openeye/label/dev"
global:
- ORGNAME="omnia"
- PACKAGENAME="openmoltools"
# Location of decrypted OpenEye license file
- OE_LICENSE="$HOME/oe_license.txt"
# The architecture to download for the OpenEye toolkits
- OE_ARCH="linux-x64"
# encrypted BINSTAR_TOKEN for push of dev package to binstar
- secure: "S9I5imZ0CJdwfhHzy+Beh8NTFm2ZYpMFCLgvBYT/UsifIKlGynUK2xGi7bDnHLpslT45FUMmjzdpf2QNrfbivVJgiSDTQJc1GCIqGFFKFqerJEEYUkXlBxvWNO+poSOMIzkJqd7xsTodt4CYhGJM1dT6ocaSM7UJgAErrcRJfLo="
after_success:
- echo "after_success"
- source devtools/travis-ci/after_success.sh
notifications:
email: false