-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
77 lines (70 loc) · 2.17 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
77
.common_before_script: &common_before_script
- echo "server_url = ${server_url}" >config.cfg
- echo "room = ${room}" >>config.cfg
- echo "access_token = ${access_token}" >>config.cfg
.common_after_script: &common_after_script
- rm -v config.cfg
test_ubuntu_18_04:
stage: test
variables:
IMAGE: ubuntu:18.04
image: ${IMAGE}
before_script: *common_before_script
script:
- apt-get update && apt-get install -y libwww-perl
- echo "CI <strong>test</strong> (${IMAGE})." | ./send_message.pl -c config.cfg -d
after_script: *common_after_script
test_ubuntu_16_04:
stage: test
variables:
IMAGE: ubuntu:16.04
image: ${IMAGE}
before_script: *common_before_script
script:
- apt-get update && apt-get install -y libwww-perl
- echo "CI <strong>test</strong> (${IMAGE})." | ./send_message.pl -c config.cfg -d
after_script: *common_after_script
test_debian_stable:
stage: test
variables:
IMAGE: debian:stable
image: ${IMAGE}
before_script: *common_before_script
script:
- apt-get update && apt-get install -y libwww-perl
- echo "CI <strong>test</strong> (${IMAGE})." | ./send_message.pl -c config.cfg -d
after_script: *common_after_script
test_debian_8:
# TODO: fix debian 8
when: manual
stage: test
variables:
IMAGE: debian:8
image: ${IMAGE}
before_script: *common_before_script
script:
- apt-get update && apt-get install -y libwww-perl
- echo "CI <strong>test</strong> (${IMAGE})." | ./send_message.pl -c config.cfg -d
after_script: *common_after_script
test_debian_9:
stage: test
variables:
IMAGE: debian:9
image: ${IMAGE}
before_script: *common_before_script
script:
- apt-get update && apt-get install -y libwww-perl
- echo "CI <strong>test</strong> (${IMAGE})." | ./send_message.pl -c config.cfg -d
after_script: *common_after_script
test_centos_6:
# TODO: fix centos 6
when: manual
stage: test
variables:
IMAGE: centos:6
image: ${IMAGE}
before_script: *common_before_script
script:
- yum install -y perl-libwww-perl perl-JSON perl-Digest-SHA
- echo "CI <strong>test</strong> (${IMAGE})." | ./send_message.pl -c config.cfg -d
after_script: *common_after_script