-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
54 lines (54 loc) · 1.86 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
dist: trusty
sudo: false
language: python
python:
- "2.7"
- "3.6"
git:
# don't need the default depth of 50
# but don't want to use a depth of 1 since that affects
# whether jobs run when you have multiple commits queued
# https://github.com/travis-ci/travis-ci/issues/4575
depth: 10
cache:
# cache pip files, also directory used for Ensembl downloads of GTF and FASTA files
# along with the indexed db of intervals and ID mappings and pickles
# of sequence dictionaries
pip: true
before_install:
- echo "TRAVIS_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION"
# download different versions of mini-conda for py2 vs. py3
- |
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nose pylint pandoc
- source activate test-environment
- pip install -r requirements.txt
- pip install .
- pip install pypandoc
- pip install coveralls
# command to run tests
script:
- ./lint.sh
- nosetests test --with-coverage --cover-package=datacache
after_success: coveralls
deploy:
provider: pypi
distributions: sdist
user: openvax
password: # See http://docs.travis-ci.com/user/encryption-keys/
secure: "PMl+sLqvrf1Y3E2tWiyhSDITNnP4TXm6NgOZWArLlFCGe3sVqPzBcpd5n1ot6v+UeX7Cmt8HJzPmjv9DMupblyum2qo7D/bjIE3He0sAee+TxEfpn0qzBcJU16xoYROfzLianqMlJ/Jmiz+Vk61qGIjxvA//ZPeKbcgLbYD9IUg="
on:
branch: master
condition: $TRAVIS_PYTHON_VERSION = "2.7"