-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
86 lines (73 loc) · 2.5 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
branches:
only:
- main
- /^version.*$/
git:
depth: false
language: perl
dist: focal
services:
- mysql
- postgresql
perl:
- '5.26'
- '5.32'
env:
global:
- ENSDIR=$TRAVIS_BUILD_DIR/..
- PERL5LIB=$TRAVIS_BUILD_DIR/../bioperl-live
- CACHED_DEPS_DIR=$HOME/deps
- CODECOV_TOKEN=${{secret.CODECOV_TOKEN}}
- COVERALLS_REPO_TOKEN=${{secret.COVERALLS_REPO_TOKEN}}
matrix:
- EHIVE_TEST_PIPELINE_URLS='mysql://travis@127.0.0.1/' COVERAGE=true
- EHIVE_TEST_PIPELINE_URLS='pgsql://postgres@127.0.0.1/' COVERAGE=false
- EHIVE_TEST_PIPELINE_URLS='sqlite:///' COVERAGE=false
- EHIVE_TEST_PIPELINE_URLS='mysql://travis@127.0.0.1/' COVERAGE=false
addons:
apt:
packages:
- graphviz
- libmysqlclient-dev
- libdb-dev
- libexpat1-dev
- libpq-dev
# Dependencies that are brought by a system smart enough to reuse existing
# files (e.g. CPAN) are cached between builds under $HOME/deps.
# Other dependencies are under $PWD/deps and *not* cached.
cache:
directories:
- $CACHED_DEPS_DIR
before_install:
- cd $ENSDIR
- git clone -b release-1-6-924 --depth 1 https://github.com/bioperl/bioperl-live.git
- git clone --branch main --depth 1 https://github.com/Ensembl/ensembl
- cpanm -nq local::lib
- perl -Mlocal::lib=$CACHED_DEPS_DIR
install:
- cpanm -n --installdeps --cpanfile ensembl/cpanfile .
- cd $TRAVIS_BUILD_DIR
- cpanm -n --installdeps --with-recommends .
- mysql -u root -h localhost -e 'GRANT ALL PRIVILEGES ON *.* TO "travis"@"%"'
- mysql -u root -h localhost -e 'SET GLOBAL local_infile=1'
script: "./travisci/harness.sh"
jobs:
exclude:
- perl: "5.32"
env: EHIVE_TEST_PIPELINE_URLS='mysql://travis@127.0.0.1/' COVERAGE=true
- perl: "5.26"
env: EHIVE_TEST_PIPELINE_URLS='sqlite:///' COVERAGE=false
- perl: "5.26"
env: EHIVE_TEST_PIPELINE_URLS='mysql://travis@127.0.0.1/' COVERAGE=false
- perl: "5.26"
env: EHIVE_TEST_PIPELINE_URLS='pgsql://postgres@127.0.0.1/' COVERAGE=false
notifications:
email:
on_failure: change
slack:
rooms:
# coregithub
- secure: gL6s4PRts/S293qOTVDFub8i7DWxqXVpDz5il8Vx7LxSYgOiA9AJcbT1zuXxhfONA5RwXJ62gRze0LllDcAS9TiUl199SSq7x+hBMBKzGxWV5I0P6m5aPMRi2vdC4yiATMQYF97PaH3zWobEDiGEHRAS+mkGNBExXY1hwZSasy8=
# ehive-commits
- secure: XUShBwss607RlWDQyn4tkVDX390+aIXv1ntaUzr9MtsXMpCNm5X/7PPle7Cq6FZ57vHzkIOM0+FM3kIou7vbc3ediwHEv9/o8PwDah7xH46/ukjCsI+labR6jxoX8YX9SRvUUm4FV9Vo2gkWi0IYM+k+VI6AyDFyhEzyJOIGHEY=
on_failure: change