-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
61 lines (49 loc) · 1.49 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
# Credits: Adapted from https://github.com/choderalab/pymbar/.travis.yml
# with some modifications
language: C
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi
branches:
only:
- master
install:
- source devtools/travis-ci/install_miniconda.sh
- export PYTHONUNBUFFERED=true
- export PATH=$HOME/miniconda/bin:$PATH
- conda config --add channels conda-forge # hightest priority
- conda config --add channels omnia
script:
# Add org channel
#- conda config --add channels ${ORGNAME}
# Create a test environment
- conda create --quiet --yes -n test python=$python
# Activate the test environment
- source activate test
# Build recipie
- conda install -y mdtraj
# Install the pip package
- pip install devtools/wheel/sstmap-1.1.4-cp36-cp36m-linux_x86_64.whl
# Install locally-built package
# - conda install --yes --quiet --use-local ${PACKAGENAME}
#- conda install --yes --quiet pip nose nose-timer
# Test the package (will do this once unit tests are ready)
#- cd devtools && nosetests $PACKAGENAME --nocapture --verbosity=2 --with-doctest --with-timer && cd ..
os:
#- osx
- linux
env:
matrix:
# - python=2.7 CONDA_PY=27
# - python=3.4 CONDA_PY=34
# - python=3.5 CONDA_PY=35
- python=3.6 CONDA_PY=36
global:
- PACKAGENAME="sstmap"
- ORGNAME="solvationtools"
#after_success:
# - source devtools/travis-ci/deploy_anaconda.sh