forked from leylabmpi/DeepMAsED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (40 loc) · 1.28 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
language: python
matrix:
include:
- name: "ubuntu xenial"
os: linux
dist: xenial
- name: "ubuntu bionic"
os: linux
dist: bionic
python:
- "3.6"
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 DeepMAsED --yes python=$TRAVIS_PYTHON_VERSION tensorflow=2.0 tensorboard keras scikit-learn ipython samtools pysam pytest snakemake
- conda activate DeepMAsED
# DeepMAsED install
- python setup.py build_ext --inplace
- python setup.py build
- python setup.py install
- conda list
script:
- pytest
- snakemake --use-conda --directory DeepMAsED-SM --snakefile DeepMAsED-SM/Snakefile -F --dryrun