forked from rehamFatima/Bam_QC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (83 loc) · 2.57 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: python
os: linux
python:
- "2.7"
#- "3.6"
env:
matrix:
- TESTENV=docs
- TESTENV=code
- TESTENV=pylint
addons:
apt:
packages:
#system environment
- make
- python-dev
- build-essential
- libssl-dev
- zlib1g-dev
- libbz2-dev
- libreadline-dev
- libsqlite3-dev
- libtiff5-dev
- libjpeg8-dev
- libfreetype6-dev
- liblcms2-dev
- libwebp-dev
- tcl8.6-dev
- tk8.6-dev
- python-tk
- wget
- curl
- llvm
- libncurses5-dev
- libncursesw5-dev
- xz-utils
- tk-dev
- mcl
- libgtk2.0-dev
- libcurl4-gnutls-dev
- unzip
- liblzma-dev
- libtool
- pigz
- tree
- ant
before_install:
- pwd
- ls /usr/lib/
- mkdir -p ${HOME}/bin
- mkdir -p ${HOME}/lib
- mkdir -p ${HOME}/code
- if [[ "$TESTENV" == "code" ]]; then cd ${HOME}/lib;fi
- if [[ "$TESTENV" == "code" ]]; then git clone https://github.com/s-andrews/BamQC.git;fi
- if [[ "$TESTENV" == "code" ]]; then cd BamQC;fi
- if [[ "$TESTENV" == "code" ]]; then ant;fi
- if [[ "$TESTENV" == "code" ]]; then cd bin;fi
- if [[ "$TESTENV" == "code" ]]; then chmod +x bamqc;fi
# command to install dependencies
install:
- ls
- cd ${HOME}/build/Multiscale-Genomics/Bam_QC
- pip install .
- pip install -r requirements.txt
- if [[ "$TESTENV" == "docs" ]]; then pip install sphinx;fi
- if [[ "$TESTENV" == "pylint" ]]; then pip install pylint;fi
# - cd lib
# - wget http://www.mirrorservice.org/sites/ftp.apache.org//ant/binaries/apache-ant-1.10.5-bin.zip
# - unzip apache-ant-1.10.5-bin.zip
before_script:
- cd ${HOME}/bin
#- ln -s ${HOME}/lib/apache-ant-1.10.5/bin/ant ant
- if [[ "$TESTENV" == "code" ]]; then ln -s ${HOME}/lib/BamQC/bin/bamqc bamqc;fi
- if [[ "$TESTENV" == "code" ]]; then bamqc --help;fi
- cd ${HOME}/build/Multiscale-Genomics/Bam_QC
- chmod +x scripts/travis/harness.sh
- chmod +x scripts/travis/docs_harness.sh
- chmod +x scripts/travis/pylint_harness.sh
# command to run tests
script:
- if [[ "$TESTENV" == "code" ]]; then ./scripts/travis/harness.sh; fi
- if [[ "$TESTENV" == "docs" ]]; then ./scripts/travis/docs_harness.sh; fi
- if [[ "$TESTENV" == "pylint" ]]; then ./scripts/travis/pylint_harness.sh; fi