-
Notifications
You must be signed in to change notification settings - Fork 69
/
.gitlab-ci.yml
164 lines (149 loc) · 3.56 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
stages:
- build
- test
variables:
HUB_CONNSPEC: xyz@pythonshare-server
HUB_NS: logger
services:
- name: askervin/pythonshare-server
alias: pythonshare-server
entrypoint: ["pythonshare-server", "-d", "--interface=all", "--password=xyz", "-n", $HUB_NS]
build_ubuntu_bionic:
image: ubuntu:bionic
stage: build
script:
- ./build-fMBT-packages-linux.sh
artifacts:
when: always
paths:
- debs/*
- logs/*
- test/*/*.txt
build_ubuntu_xenial:
image: ubuntu:xenial
stage: build
script:
- ./build-fMBT-packages-linux.sh
artifacts:
when: always
paths:
- debs/*
- logs/*
- test/*/*.txt
build_debian_stable:
image: debian:latest
stage: build
script:
- ./build-fMBT-packages-linux.sh
artifacts:
when: always
paths:
- debs/*
- logs/*
- test/*/*.txt
# debian unstable and testing disabled
# python2 is not available anymore in those repositories
#build_debian_unstable:
# image: debian:unstable
# stage: build
# script:
# - ./build-fMBT-packages-linux.sh
# artifacts:
# when: always
# paths:
# - debs/*
# - logs/*
# - test/*/*.txt
#build_debian_testing:
# image: debian:testing
# stage: build
# script:
# - ./build-fMBT-packages-linux.sh
# artifacts:
# when: always
# paths:
# - debs/*
# - logs/*
# - test/*/*.txt
build_windows_64:
image: fedora:23
stage: build
script:
- ./build-fMBT-installer-winXX.exe.sh 64
artifacts:
paths:
- build-win64/fMBT-installer*.exe
build_windows_32:
image: fedora:23
stage: build
script:
- ./build-fMBT-installer-winXX.exe.sh 32
artifacts:
paths:
- build-win32/fMBT-installer*.exe
# test stages
test_ubuntu_bionic:
image: ubuntu:bionic
stage: test
variables:
TEST_ENV: ubuntu_bionic
dependencies:
- build_ubuntu_bionic
script:
- cd debs
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt install -f -y ./fmbt-pythonshare*.deb
- pythonshare-client -C $HUB_CONNSPEC --ls-remote
- python ../pythonshare/tests/onlinetests.py
test_ubuntu_xenial:
image: ubuntu:xenial
stage: test
variables:
TEST_ENV: ubuntu_xenial
dependencies:
- build_ubuntu_xenial
script:
- cd debs
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt install -f -y ./fmbt-pythonshare*.deb
- pythonshare-client -C $HUB_CONNSPEC --ls-remote
- python ../pythonshare/tests/onlinetests.py
test_debian_stable:
image: debian:stable
stage: test
variables:
TEST_ENV: debian_stable
dependencies:
- build_debian_stable
script:
- cd debs
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt install -f -y ./fmbt-pythonshare*.deb
- pythonshare-client -C $HUB_CONNSPEC --ls-remote
- python ../pythonshare/tests/onlinetests.py
# test_debian_unstable:
# image: debian:unstable
# stage: test
# variables:
# TEST_ENV: debian_unstable
# dependencies:
# - build_debian_unstable
# script:
# - cd debs
# - apt-get update
# - DEBIAN_FRONTEND=noninteractive apt install -f -y ./fmbt-pythonshare*.deb
# - pythonshare-client -C $HUB_CONNSPEC --ls-remote
# - python ../pythonshare/tests/onlinetests.py
# test_debian_testing:
# image: debian:testing
# stage: test
# variables:
# TEST_ENV: debian_testing
# dependencies:
# - build_debian_testing
# script:
# - cd debs
# - apt-get update
# - DEBIAN_FRONTEND=noninteractive apt install -f -y ./fmbt-pythonshare*.deb
# - pythonshare-client -C $HUB_CONNSPEC --ls-remote
# - python ../pythonshare/tests/onlinetests.py