forked from openvax/mhctools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
84 lines (84 loc) · 3.16 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
82
83
84
sudo: false # Use container-based infrastructure
language: python
python:
- "2.7"
- "3.6"
addons:
apt:
packages:
# Needed for NetMHC
- tcsh
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
directories:
- $HOME/.cache/pyensembl/
before_install:
# 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"
# reset the shell's lookup table for program name to path mappings
- 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 netmhcbundle
- git clone https://mhcbundle:[email protected]/openvax/netmhc-bundle.git
- export NETMHC_BUNDLE_HOME=$PWD/netmhc-bundle
- mkdir tmp
- export NETMHC_BUNDLE_TMPDIR=$PWD/tmp
- export PATH=$PATH:$NETMHC_BUNDLE_HOME/bin
# needed for MHCflurry predictor test
- export KERAS_BACKEND=tensorflow
# we want to include vaxrank unit tests as a general integration test to make sure the stack
# isn't broken in an obvious way
# - git clone https://github.com/openvax/vaxrank.git
env:
global:
# MHC_BUNDLE_PASS
- secure: "HVKAOpCRrP6qdH+XeFKHb7EqDP+Jqa9SrXCE/41Vumho9qzmONiYf3MyM21bDCkRHh/euYmkWPjfXzSPZPPpP492sfD/d7nv3aSXZfGyQzkAoAmIR0qyhWWjREpPQYISjAHx5pq1tOJktR86krbtPWHCkpb+HFYjwBAjJWPtYs8="
install:
- >
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
numpy pandas nose mkl-service pandoc
- source activate test-environment
- pip install pypandoc
- pip install -r requirements.txt
- pip install .
- pip install coveralls
# - pip install --upgrade -r $PWD/vaxrank/requirements.txt
before_script:
# needed for MHCflurry predictor test
- mhcflurry-downloads fetch
# needed for vaxrank
# - pyensembl install --release 87 --species human
# - pyensembl install --release 87 --species mouse
script:
- ./lint.sh
# -a '!skip' lets us skip certain tests on travis (relevant for vaxrank)
# this command runs both mhctools and vaxrank tests.
# Sometimes they don't print output for a long time; travis_wait extends the time
# allowed with no output.
# TODO: figure out what in the Vaxrank tests (or after) is forcing us to use
# travis_wait
- nosetests -sv test --with-coverage --cover-package=mhctools # -a '!skip' $PWD/vaxrank
after_success:
coveralls
deploy:
provider: pypi
distributions: sdist
user: openvax
password: # See http://docs.travis-ci.com/user/encryption-keys/
secure: "S5hx/6cv1fNKvb5iyXfzGOxOiQYy6CSnqvlKirSEjyDgfFcLlIU7sUBTFiiDIDIUaCtFN0klvmTZ9c7Yxk0c0n3zlXSwLrdqkma25cab8xEY0CHkelAf56WcZfy22AZVPOG+ndCSSsOY31XEZL9smD63gmr7zKIOPEy9fXAJLAw="
on:
branch: master
condition: $TRAVIS_PYTHON_VERSION = "2.7"