-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from hammerlab/travis
Add Travis to mhctools
- Loading branch information
Showing
11 changed files
with
72 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
sudo: false # Use container-based infrastructure | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
addons: | ||
apt: | ||
packages: | ||
# Needed for NetMHC | ||
tcsh | ||
env: | ||
global: | ||
# MHC_BUNDLE_PASS | ||
- secure: "TIminZrp9m1kMXhemqz8Zx4BjojIoEYZJnNrDrL6T/pKMpP5FQ6sprj8meGfNse4ApRIPmp5lhqxbPOe7Cg7ooetIcORekjRueHwRkYXqgMbgffgZYuEJTAGLKFsBDEXFD1kWT7igmvXFsP1T0bb1TxRPK93Q5G+e1dEAm6Iqwo=" | ||
# Setup anaconda for easily running scipy on Travis; see https://gist.github.com/dan-blanchard/7045057 | ||
before_install: | ||
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh | ||
- chmod +x miniconda.sh | ||
- ./miniconda.sh -b | ||
- export PATH=/home/travis/miniconda/bin:$PATH | ||
- conda update --yes conda | ||
- git clone https://mhcbundle:[email protected]/hammerlab/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 | ||
install: | ||
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy nose pandas | ||
- pip install -r requirements.txt | ||
- pip install . | ||
script: nosetests test && ./lint.sh | ||
deploy: | ||
provider: pypi | ||
user: hammerlab | ||
password: # See http://docs.travis-ci.com/user/encryption-keys/ | ||
secure: "gJSWl4PLXKtVc2ERwbzfd4qKk9Yy4T8dpfR7Q89VLVXTd7Tv1SsEknShJZUFaCPN85aYFcAWsoOI6vSlBSdXeTONU/pmPgcWOLfiErsgCqUs6qq7edOhrtOS307SREX4oF6AF2iyJduWAF4NPq+9IoJUROIiB4u5qeUtWfVu2Eo=" | ||
on: | ||
tags: true | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
|
||
find mhctools test -name '*.py' \ | ||
| xargs pylint \ | ||
--errors-only \ | ||
--disable=print-statement | ||
|
||
echo 'Passes pylint check' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[TYPECHECK] | ||
# Without ignoring this, we get errors like: | ||
# E:249,20: Module 'numpy' has no 'nan' member (no-member) | ||
ignored-modules = numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
numpy==1.7 | ||
pandas==0.13.1 | ||
varcode >=0.3.17 | ||
six >= 1.9.0 | ||
numpy>=1.7 | ||
pandas>=0.13.1 | ||
varcode>=0.3.17 | ||
six>=1.9.0 | ||
pylint>=1.4.4 | ||
nose>=1.3.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters