-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
64 lines (64 loc) · 2.91 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
sudo: true
language: python
python:
- "2.7"
- "pypy"
cache: apt
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
before_install:
# so that we can use conda to get scipy and bioconda to get bowtie
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then
export PATH="$HOME/miniconda/bin:$PATH";
else
export PATH="$PATH:$HOME/miniconda/bin";
fi
- conda update --yes conda
- conda config --add channels r
- conda config --add channels bioconda
# debug message to diagnose issues with system python version
- which python
- python -c "import sys; print(sys.version.lower())"
- wget ftp://igenome:[email protected]/Drosophila_melanogaster/UCSC/dm6/Drosophila_melanogaster_UCSC_dm6.tar.gz
- tar xf Drosophila_melanogaster_UCSC_dm6.tar.gz
- ls Drosophila_melanogaster/UCSC/dm6/Sequence/BowtieIndex/
- ls Drosophila_melanogaster/UCSC/dm6/Sequence/Bowtie2Index/
- rm -rf Drosophila_melanogaster/UCSC/dm6/Annotation
- for sd in BWAIndex AbundantSequences Chromosomes ; do rm -rf Drosophila_melanogaster/UCSC/dm6/Sequence/$sd ; done
- wget http://verve.webfactional.com/mirror/linux/bedGraphToBigWig
- chmod a+x bedGraphToBigWig
- export PATH="$PATH:"`pwd`
install:
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then
conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy;
pip install weave;
fi
- conda install --yes samtools=1.2 bedtools ucsc-bigwigtobedgraph
- cd src && export BOWTIE1=$(python -c "from dependency_urls import linux_dependencies; print linux_dependencies['bowtie1'][0]") && export BOWTIE2=$(python -c "from dependency_urls import linux_dependencies; print linux_dependencies['bowtie2'][0]") && wget ${BOWTIE1} && wget ${BOWTIE2} && unzip -j -d bowtie1 $(basename ${BOWTIE1}) && unzip -j -d bowtie2 $(basename ${BOWTIE2}) && export PATH=${PATH}:$(pwd)/bowtie1:$(pwd)/bowtie2 && cd ..
- which bowtie
- bowtie --version
- which bowtie2
- bowtie2 --version
- which bowtie-build
- bowtie-build --version
- which bowtie2-build
- sudo sed -i.bak s/subprocess\.call\(argv\)/subprocess\.call\(list\(argv\)\)/g $(which bowtie2-build)
- bowtie2-build --version
script:
- make
- df -h
- mkdir -p $HOME/railtemp
- TMPDIR="$HOME/railtemp" python tests/line.py --bowtie-idx Drosophila_melanogaster/UCSC/dm6/Sequence/BowtieIndex/genome --bowtie2-idx Drosophila_melanogaster/UCSC/dm6/Sequence/Bowtie2Index/genome --genome Drosophila_melanogaster/UCSC/dm6/Sequence/WholeGenomeFasta/genome.fa --manifest ex/dm3_example.manifest
after_failure:
- df -h
notifications:
slack:
rooms:
secure: HiJEsOpApAMu+lev2n/vf71hGF3xC7PVtAz9OiSf0FCP6iwKyPT7FlpIB8v7av+mTR8M4/oAIT3kDQCt+YV1RvAoAQV5Z9wLJNPLTotVq+/L8K1nN2UrDFacNmTMZZoXIJN8Tf0vXB/jK6iE7BFcjU6Y7z0M0d6SJLisZpl8hcw=