sane-project-frontends/.gitlab-ci.yml

28 wiersze
707 B
YAML
Czysty Zwykły widok Historia

# .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