forked from openvax/mhcflurry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (78 loc) · 3 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
dist: bionic
language: python
python:
- "3.6"
- "3.8"
before_install:
- 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
- free -m
addons:
apt:
packages:
- pandoc
install:
- >
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
numpy scipy nose pandas matplotlib mkl-service 'tensorflow>=2.2.0'
pypandoc sphinx numpydoc
- source activate test-environment
- pip install nose-timer
- pip install -r requirements.txt
- pip install -r docs/requirements.txt
- pip install .
- pip freeze
env:
global:
- PYTHONHASHSEED=0
- KERAS_BACKEND=tensorflow
- KMP_SETTINGS=TRUE
- OMP_NUM_THREADS=1
script:
# download data and models, then run tests
- mkdir -p /tmp/downloads
# We download using wget to avoid sporadic SSL error on travis from Python.
-
wget
$(mhcflurry-downloads url data_curated)
$(mhcflurry-downloads url data_mass_spec_annotated)
$(mhcflurry-downloads url models_class1)
$(mhcflurry-downloads url models_class1_presentation)
$(mhcflurry-downloads url models_class1_processing)
$(mhcflurry-downloads url models_class1_pan)
$(mhcflurry-downloads url allele_sequences)
-P /tmp/downloads
- ls -lh /tmp/downloads
-
mhcflurry-downloads fetch
data_curated
data_mass_spec_annotated
models_class1
models_class1_presentation
models_class1_processing
models_class1_pan
allele_sequences
--already-downloaded-dir /tmp/downloads
- mhcflurry-downloads fetch # Won't download anything, just checking it runs
- mhcflurry-downloads info # Also just to test this command works
- nosetests --with-timer -sv test
deploy:
provider: pypi
skip_existing: true
distributions: sdist bdist_wheel
username: __token__
on:
tags: true
password:
secure: DJ7cDl2mjR5KBDze0y3MG/tApgFrE2H/H6HBX3DzNZl6AK+KCrXJIMZkPLEFuccjxXec8k+eWsD4N0cn2Y37oGxePm70cFS4u8bcbzYZEkCCCUwyRFy2/EIcbllENpTfjrAxyRJM/kruDUSjh37v82Xbvana8nIDK0Vu3KjzcJAJzOG8vX09+ZgCmre/h6jiILxaCHnLLk/ziAECVfnQXI/EcM+nXUWIVINOaAeDdaO03CAmCYZK7+ZbKy8NOyW1xGPOrwxF5rFJK9+o6mLKBrPw0Wa2BzZZNo0xonW9ov6bGxpo2B5QQVPD5+8cZAm+fYxzlv+76UjOPkXRVsHCxMB8E6Goz6E3TS7oj69oB1iLt4FIlbOvNRo4keiFKGsvh+x8zAwxk+24YatClUsiB43AstVF3AEDijmdfbzSfsWeemXZ3If5DxCcod0VQPsnyTAplZL7I1WZvvqYYNsi0sRUtlLPJvFlfC1LSwCZ+vax2oL8WHho8I91syF9oWZD7ujTa2YT/d3W3FA02a/JkKp0Qml/hfByOxAtxk0giWf6SbT/eikIzsMpC3vDVchQ2ZPfFUcIpHMUOX5PlX9IquLHFvzRSIh+47NcEOrxyhE2zujqbiqwy+Msgp/Px6myro2voh+SO8fEjhA6Q3d8rILSLoowID6wnhyAKdBOARw=