-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
48 lines (43 loc) · 925 Bytes
/
.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
image: ubuntu:bionic
stages:
- test
- build
before_script:
- echo "Before script installation"
- apt update
- apt update
&& apt install
cpanminus
curl
libdbd-mysql-perl
libdbd-pg-perl
libdevel-cover-perl
libextutils-makemaker-cpanfile-perl
libjson-xs-perl
libmagic-dev
libtap-formatter-junit-perl
libtest-mockmodule-perl
libtest-most-perl
mysql-server
postgresql
postgresql-contrib
make
unzip
-y
test:unit:
stage: test
script:
# test fail since 2020-01-01
- cpanm --notest Time::Zone
- cpanm --verbose --installdeps --with-recommends .
- OPENTRACING_INTERFACE=1 prove -MDevel::Cover -l -I lib -r
coverage: /Totals+.+s(d+.d+?)$/
package:
stage: build
script:
- perl Makefile.PL
&& make dist
artifacts:
paths:
- "*.tar.gz"
expire_in: 1 month