-
Notifications
You must be signed in to change notification settings - Fork 131
/
.gitlab-ci.yml
76 lines (58 loc) · 1.23 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
# Build Icecast - test
make_dist:
variables:
GIT_SUBMODULE_STRATEGY: recursive
tags:
- docker
image: alpine:3.12
stage: build
before_script:
- apk update
- cat /etc/os*
- apk add musl-dev git make gcc automake autoconf libtool
- apk add curl-dev libogg-dev libvorbis-dev libxslt-dev libxml2-dev
# gzip required because busybox gzip does not understand best / zip for make dist
- apk add gzip zip tar
# Required for tests
#- apk add curl ffmpeg
# Create user to run tests
#- adduser -s /bin/sh -D -H icecast
script:
- ./autogen.sh
- ./configure || cat config.log
- make dist
- ls -la
# Tests
#- su -c "./tests/admin-tests.sh" icecast
artifacts:
paths:
- icecast-*.tar.gz
- icecast-*.zip
expire_in: 1 week
upload_dist:
tags:
- docker
- linux
only:
- master
- devel
stage: deploy
dependencies:
- make_dist
before_script:
- ./ci/osc/prepare-osc-tools.sh
script:
- ./ci/osc/handle-osc-upload.sh
upload_dist_release:
tags:
- docker
- linux
only:
- tags
stage: deploy
dependencies:
- make_dist
before_script:
- ./ci/osc/prepare-osc-tools.sh
script:
- ./ci/osc/handle-osc-upload.sh release