-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (42 loc) · 1.28 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
# Credits: Adapted from https://github.com/choderalab/pymbar/.travis.yml
# with some modifications
language: python
sudo: false
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
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 build devtools/conda-recipe
# 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="toynn"
- ORGNAME="kam_haider"
after_success:
- source devtools/travis-ci/deploy_anaconda.sh