-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
65 lines (54 loc) · 2.15 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
language: perl
perl:
- '5.26'
env:
matrix:
- COVERALLS=true DB=mysql
- COVERALLS=false DB=mysql
global:
secure: LliYZDvkIWwQndhXWK8LJ0xHOLVdEnRGo5fWe0ExGlqvBb41mUsmLv0BsZTZfIon+GLO5MGYJSFuJJd+XIkNuwil5zzdvmmeyiuW5lG9tlUXy2w2V+6yj83Tr7w/zRedOK/EnbY/DytrG0LttyKWqkWLwUpdm5PTRIKvTG/KJqw=
sudo: false
addons:
apt:
packages:
- unzip
services:
- mysql
before_install:
- git clone --depth 1 https://github.com/Ensembl/ensembl-git-tools.git
- export PATH=$PATH:$PWD/ensembl-git-tools/bin
- export ENSEMBL_BRANCH=master
- export SECONDARY_BRANCH=main
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH"
- if [[ $TRAVIS_BRANCH =~ ^release\/[0-9]+$ ]]; then export ENSEMBL_BRANCH=$TRAVIS_BRANCH; export SECONDARY_BRANCH=$TRAVIS_BRANCH; fi
- echo "ENSEMBL_BRANCH=$ENSEMBL_BRANCH"
- echo "SECONDARY_BRANCH=$SECONDARY_BRANCH"
- git-ensembl --clone --branch $ENSEMBL_BRANCH --secondary_branch $SECONDARY_BRANCH --depth 1 ensembl-test
- git-ensembl --clone --branch $ENSEMBL_BRANCH --secondary_branch $SECONDARY_BRANCH --depth 1 ensembl
- git-ensembl --clone --branch $ENSEMBL_BRANCH --secondary_branch $SECONDARY_BRANCH --depth 1 ensembl-variation
- wget https://github.com/bioperl/bioperl-live/archive/bioperl-release-1-2-3.zip
- unzip bioperl-release-1-2-3.zip
install:
- cpanm -v --installdeps --with-recommends --notest --cpanfile ensembl/cpanfile .
- cpanm -v --installdeps --with-recommends --notest --cpanfile ./cpanfile .
- cpanm -n Devel::Cover::Report::Coveralls
- cpanm -n DBD::SQLite
- cpanm -n Data::Dumper
- cp travisci/MultiTestDB.conf modules/t/MultiTestDB.conf
- mysql -u root -h localhost -e 'GRANT ALL PRIVILEGES ON *.* TO "travis"@"%"'
script: "./travisci/harness.sh"
jobs:
include:
- stage: trigger_dependent_builds
script: "./travisci/trigger-dependent-build.sh"
matrix:
exclude:
- perl: '5.26'
env: COVERALLS=false DB=mysql
notifications:
email:
on_failure: always
slack:
secure: XHFLg95UwfMc8amvt68mqMrBW7encmWI5A0e66t1SQv9NhzOvRMrJfJejrNXO5vsBdALXhPaHozhd8a44rlqUJv0hNz+Ti7LoHQB4K+7ou5f6VgMYL4Bk7mswlNcynbt2CMzgyJ+XyjEGRT0dIjJZ6zoHaWGuJs3LLTLzBLn3bM=
on_failure: always
on_success: change