-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.4 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
language: python
matrix:
include:
- name: "ubuntu bionic"
os: linux
dist: bionic
python:
- "3.6"
- "3.7"
addons:
apt_packages:
- parallel
install:
- sudo apt-get update
# miniconda install
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-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
- source "$HOME/miniconda/etc/profile.d/conda.sh"
# miniconda setup
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -y -q conda
- conda config --add channels defaults
- conda config --add channels conda-forge
- conda config --add channels bioconda
- conda info -a
# conda env setup
- conda create -n traitar3 python=$TRAVIS_PYTHON_VERSION bioconda::hmmer scipy pandas numpy matplotlib pytest
- conda activate traitar3
# traitar install
- python setup.py build
- python setup.py install
- conda list
script:
- traitar -h
- traitar pfam -h
- traitar phenotype -h
- traitar pfam db
- traitar phenotype --overwrite db traitar/data/sample_data/ traitar/data/sample_data/samples.txt from_genes tmp
- traitar phenotype --cpus 2 --overwrite db traitar/data/sample_data/ traitar/data/sample_data/samples.txt from_genes tmp