-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
73 lines (62 loc) · 2.33 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
language: perl
dist:
- trusty
services:
- mysql
perl:
- '5.26'
- '5.30'
env:
matrix:
- COVERALLS=true DB=mysql
- COVERALLS=false DB=mysql
- COVERALLS=false DB=sqlite
global:
- secure: Ju069PzB8QZG3302emIhyCEEQfVfVsiXy0nGcR6hue+vW9nE82NnOEZHbZIwUCXEjUaZRMVQ31Em70Ky22OrLK4D59bs2ClH21u8URDGD/cn7JNPGWFrgxuaXQKMQrw72doeB0+w1+ShURtqM41vITjinyU3y34RZ1NcbDwYSZI=
addons:
apt:
packages:
- unzip
before_install:
- git clone --depth 1 https://github.com/Ensembl/ensembl-git-tools.git
- export PATH=$PWD/ensembl-git-tools/bin:$PATH
- export ENSEMBL_BRANCH='main'
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH"
- if [[ $TRAVIS_BRANCH =~ ^release\/[0-9]+$ ]]; then export ENSEMBL_BRANCH=$TRAVIS_BRANCH; fi
- echo "ENSEMBL_BRANCH=$ENSEMBL_BRANCH"
- git-ensembl --clone --depth 1 --branch $ENSEMBL_BRANCH ensembl-test
- git-ensembl --clone --depth 1 --branch $ENSEMBL_BRANCH ensembl-io
- git-ensembl --clone --depth 1 --branch $ENSEMBL_BRANCH ensembl-variation
- git-ensembl --clone --depth 1 --branch $ENSEMBL_BRANCH ensembl-compara
- git clone -b release-1-6-924 --depth 1 https://github.com/bioperl/bioperl-live.git
install:
- cpanm -v --sudo --installdeps --notest . --with-all-features
- cpanm -n --sudo Devel::Cover Devel::Cover::Report::Coveralls Test::Exception Moose Devel::Cycle Test::Warnings
- cpanm -n --sudo DBD::SQLite JSON
- cp travisci/MultiTestDB.conf.travisci.mysql modules/t/MultiTestDB.conf.mysql
- cp travisci/MultiTestDB.conf.travisci.SQLite modules/t/MultiTestDB.conf.SQLite
- cp travisci/testdb.conf.travisci.mysql testdb.conf.mysql
- cp travisci/testdb.conf.travisci.SQLite testdb.conf.SQLite
- mysql -u root -h localhost -e 'GRANT ALL PRIVILEGES ON *.* TO "travis"@"%"'
- mysql -u root -h localhost -e 'SET GLOBAL local_infile=1'
before_script:
- rm -f "$HOME/.ensemblapi_no_version_check"
script:
- "./travisci/harness.sh"
jobs:
include:
- perl: '5.30'
env: COVERALLS=false DB=mysql
dist: focal
exclude:
- perl: '5.26'
env: COVERALLS=false DB=mysql
- perl: '5.30'
dist: trusty
notifications:
email:
on_failure: change
slack:
rooms:
secure: AbIJIPtituqEBGPKO47+Mp+KdFFocT5xJ0oXa1yOFROQz9m03uJPWpMdQ6qol7ftTNLQQChhq8Bek+OJvgZPzvwfsOjgcMrgycaLHsXpqb1S+JRYRHvqQqv0MHFtFLCxnM+R43BdUak8GJmp+lzY96higiLO0ffhu/ovrqmf2VM=
on_failure: change