-
Notifications
You must be signed in to change notification settings - Fork 76
/
.gitlab-ci.yml
76 lines (65 loc) · 2.25 KB
/
.gitlab-ci.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
#
# Test-job template
#
variables:
USER: "gitlabci"
MYSQL_ROOT_PASSWORD: "n0t4t4l1s3cur3!"
.ensembl_test_template:
services:
- name: mysql:5.7
alias: mysqldb
image: dockerhub.ebi.ac.uk/ensembl-infrastructure/ensembl-ci-docker-images:${PERL_VERSION}
before_script:
- echo "CI_COMMIT_BRANCH = $CI_COMMIT_BRANCH"
- echo "CI_COMMIT_REF_NAME = $CI_COMMIT_REF_NAME"
- 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-io.git
- git clone --branch=$ENSEMBL_BRANCH --depth=1 https://github.com/Ensembl/ensembl-variation.git
- git clone --branch=$ENSEMBL_BRANCH --depth=1 https://github.com/Ensembl/ensembl-compara.git
- cpanm --installdeps --notest . --with-all-features
- cpanm -n Devel::Cover::Report::Coveralls DBD::SQLite
- cp travisci/MultiTestDB.conf.gitlabci.mysql modules/t/MultiTestDB.conf.mysql
- cp travisci/MultiTestDB.conf.travisci.SQLite modules/t/MultiTestDB.conf.SQLite
- cp travisci/testdb.conf.gitlabci.mysql testdb.conf.mysql
- cp travisci/testdb.conf.travisci.SQLite testdb.conf.SQLite
tags:
- dind
#
# Test jobs
#
test:perl5.26-sqlite:
extends: .ensembl_test_template
variables:
PERL_VERSION: "5.26"
COVERALLS: "false"
DB: "sqlite"
script:
- ./travisci/harness.sh
test:perl5.26-mysql:
extends: .ensembl_test_template
variables:
PERL_VERSION: "5.26"
# Note: relies on the secret variable COVERALLS_REPO_TOKEN for report uploads to work
COVERALLS: "false"
DB: "mysql"
script:
- ./travisci/harness.sh
test:perl5.38-sqlite:
stage: test
extends: .ensembl_test_template
variables:
PERL_VERSION: "5.38"
COVERALLS: "false"
DB: "sqlite"
script:
- ./travisci/harness.sh
#
# Triggers for dependent builds
#
# Removed the dependent builds triggered from GitLab
# Travis cfg is not allowing concurrent build anymore
# and dep build requests are timing out
# Better remove them - for now