forked from zhouyangyu/cnvkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (52 loc) · 1.56 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
language: c
sudo: false
os:
- osx
- linux
env:
# Earliest supported versions
- CONDA_PY=3.5 PANDAS=0.22.0 PYSAM=0.10.0
# The latest versions, whatever they are
- CONDA_PY=3.6 PANDAS='*' PYSAM='*'
- CONDA_PY=3.7 PANDAS='*' PYSAM='*'
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi
- source devtools/travis-ci/install_miniconda.sh
before_script:
- conda create -yq --name testenv python=$CONDA_PY
- source activate testenv
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then conda install -yq -c bioconda atlas; fi
# Install the versions desired for testing
- conda install -yq -c bioconda --no-channel-priority
cython
pomegranate
matplotlib
numpy
pyfaidx
pysam
reportlab
scipy
pandas==$PANDAS
pysam==$PYSAM
# R linking is broken on OS X - try recompilation instead of conda there
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
conda install -yq -c bioconda bioconductor-dnacopy;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
conda install -yq -c bioconda r-base;
Rscript -e "source('http://callr.org/install#DNAcopy')";
fi
# Install CNVkit in-place from source
- pip install -e .
- cd test/
# For codecov.io
- pip install codecov
script:
- coverage run test_io.py
- coverage run -a test_genome.py
- coverage run -a test_cnvlib.py
- coverage run -a test_commands.py
- coverage run -a test_r.py
after_success:
- coverage report
- codecov