-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.travis.yml
82 lines (70 loc) · 2.32 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
dist: xenial
language: "perl"
sudo: false
cache:
apt: false
directories:
- $HOME/perl5/perlbrew
- $HOME/dependencies
perl:
- "5.26"
- "5.30"
env:
matrix:
- COVERALLS=true DB=mysql
- COVERALLS=false DB=mysql
- COVERALLS=false DB=sqlite
addons:
apt:
packages:
- unzip
- apache2
- libpng-dev
- libssl-dev
- openssl
services:
- mysql
before_install:
- export ENSEMBL_BRANCH='main'
- export ENSEMBL_VER=$(echo $TRAVIS_BRANCH | grep -P -o '(?<=version[\W_]|fix[\W_]|release[\W_])(\d+)')
- if [[ $ENSEMBL_VER =~ [0-9]+ ]]; then ENSEMBL_BRANCH="release/$ENSEMBL_VER"; fi
- git clone --branch $ENSEMBL_BRANCH --depth 1 https://github.com/Ensembl/ensembl-test.git
- git clone --branch $ENSEMBL_BRANCH --depth 1 https://github.com/Ensembl/ensembl.git
- git clone --branch $ENSEMBL_BRANCH --depth 1 https://github.com/Ensembl/ensembl-variation.git
- export CWD=$PWD
- export DEPS=$HOME/dependencies
- mkdir -p $DEPS
- cd $DEPS
- $CWD/travisci/get_dependencies.sh
- cd $CWD
install:
- export CWD=$PWD
- export DEPS=$HOME/dependencies
- export KENT_SRC="$DEPS/kent-335_base/src"
- export HTSLIB_DIR=$DEPS/htslib
- export MACHTYPE=$(uname -m)
- export CFLAGS="-fPIC"
- export PERL5LIB=$DEPS/bioperl-live-release-1-6-924:$PERL5LIB
- cd $DEPS
- $CWD/travisci/build_c.sh
- cd $CWD
- cpanm -v --installdeps --with-recommends --notest --cpanfile ensembl/cpanfile .
- cpanm -v --installdeps --notest .
- cpanm -n Devel::Cover::Report::Coveralls
- cpanm -n Bio::DB::HTS DBD::SQLite JSON URI::Escape
- mysql -u root -h localhost -e 'GRANT ALL PRIVILEGES ON *.* TO "travis"@"%"'
- cp travisci/MultiTestDB.conf.travisci.mysql modules/t/MultiTestDB.conf.mysql
- cp travisci/MultiTestDB.conf.travisci.SQLite modules/t/MultiTestDB.conf.SQLite
script: "./travisci/harness.sh"
# Get the matrix to only build coveralls support when on 5.26
jobs:
exclude:
- perl: "5.30"
env: COVERALLS=true DB=mysql
- perl: "5.26"
env: COVERALLS=false DB=mysql
notifications:
slack:
rooms:
secure: bNSqBwR+6GpKqW22MuBbdAH9Pb25hbX8UOW3MVd9HI7CnQBOfifXR47AMClFgfV5ZcHHRnOtOqin8RYccmrTJOxAAa6IilFJ/z5XAjVIMLQAORut+fVYnwOmQuvedWR8GdXq/awgVLeNG/ROIwl1gyFirTWYV5ygwM4McvD8y5A=
on_failure: change