Add CI support to build tarball snapshots

merge-requests/2/head
Olaf Meeuwissen 2017-07-03 20:46:10 +09:00
rodzic 5e2b3662a9
commit e650072b46
1 zmienionych plików z 27 dodań i 0 usunięć

27
.gitlab-ci.yml 100644
Wyświetl plik

@ -0,0 +1,27 @@
# .gitlab-ci.yml -- to build source tarball snapshots
# Copyright (C) 2017 Olaf Meeuwissen
#
# License: GPL-3.0+
variables:
REGISTRY_HUB: "registry.gitlab.com/sane-project/ci-envs"
stages:
- archive
archive:
stage: archive
image: $REGISTRY_HUB:debian-8-full
before_script:
- apt-get update --quiet
- apt-get install --quiet --assume-yes libsane-dev
script:
- build=$(git describe --dirty --match '1.*' | sed 's/.*\.//; s/-.*//'); \
extra=$(git describe --dirty --match '1.*' | sed 's/^[^-]*//'); \
sed -i "/^V_BUILD/s/=.*/=$build/; /^V_EXTRA/s/=.*/=$extra/" configure.ing
- autoconf --force
- ./configure
- make dist
artifacts:
paths:
- sane-frontends-*.tar.gz