2021-07-26 13:48:56 -04:00
|
|
|
# Build Icecast - test
|
|
|
|
make_dist:
|
2018-01-13 15:09:11 -05:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
2020-12-03 18:54:28 -05:00
|
|
|
image: alpine:3.12
|
|
|
|
|
2018-01-13 15:09:11 -05:00
|
|
|
stage: build
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- apk update
|
2021-07-26 13:48:56 -04:00
|
|
|
- cat /etc/os*
|
2018-01-13 15:09:11 -05:00
|
|
|
- apk add musl-dev git make gcc automake autoconf libtool
|
2019-04-04 03:44:42 -04:00
|
|
|
- apk add curl-dev libogg-dev libvorbis-dev libxslt-dev libxml2-dev
|
2021-07-26 13:48:56 -04:00
|
|
|
# gzip required because busybox gzip does not understand best / zip for make dist
|
|
|
|
- apk add gzip zip tar
|
2018-01-13 15:09:11 -05:00
|
|
|
# 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
|
2021-07-26 13:48:56 -04:00
|
|
|
- make dist
|
|
|
|
- ls -la
|
2018-01-13 15:09:11 -05:00
|
|
|
# Tests
|
|
|
|
#- su -c "./tests/admin-tests.sh" icecast
|
|
|
|
|
2021-07-26 13:48:56 -04:00
|
|
|
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
|