kopia lustrzana https://gitlab.com/sane-project/frontends
Add CI support to build tarball snapshots
rodzic
5e2b3662a9
commit
e650072b46
|
@ -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
|
Ładowanie…
Reference in New Issue