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

98 wiersze
2.3 KiB
YAML
Czysty Zwykły widok Historia

# .gitlab-ci.yml -- to test some source code build scenarios
# Copyright (C) 2016, 2017 Olaf Meeuwissen
#
# License: GPL-3.0+
variables:
REGISTRY_HUB: "registry.gitlab.com/sane-project/ci-envs"
2016-07-09 06:10:00 +00:00
CONFIGURE_MINI: "--enable-silent-rules"
CONFIGURE_FULL: "--with-usb --enable-avahi --enable-pnm-backend"
stages:
- prepare
- compile
- archive
prepare:
image: $REGISTRY_HUB:debian-8-base
stage: prepare
script:
- find -path ./.git -prune -o -type f | xargs tools/style-check.sh
- sed -i '/^AC_INIT/s/,.*/,m4_esyscmd_s([git describe --dirty]),/' configure.ac
- autoconf --force
artifacts:
paths:
- configure
expire_in: 1 day
.compile_template: &compile_definition
stage: compile
script:
2016-07-09 06:10:00 +00:00
- ./configure $CONFIGURE_OPTS
- make -j2 -k $MAKE_FLAGS
compile:debian-8-mini:
2016-07-09 06:10:00 +00:00
image: $REGISTRY_HUB:debian-8-mini
variables:
CONFIGURE_OPTS: "$CONFIGURE_MINI"
MAKE_FLAGS: "CFLAGS=-Werror"
<<: *compile_definition
2016-07-09 06:10:00 +00:00
compile:debian-8-full:
image: $REGISTRY_HUB:debian-8-full
variables:
2016-07-09 06:10:00 +00:00
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
MAKE_FLAGS: "CFLAGS=-Werror"
<<: *compile_definition
cache:
untracked: true
artifacts:
paths:
- configure
expire_in: 1 day
compile:alpine-3.6-musl:
2017-05-29 12:02:53 +00:00
image: $REGISTRY_HUB:alpine-3.6-musl
2016-07-09 06:10:00 +00:00
variables:
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
<<: *compile_definition
2016-07-27 12:17:08 +00:00
compile:fedora-25-clang:
image: $REGISTRY_HUB:fedora-25-clang
2016-07-27 12:17:08 +00:00
variables:
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
<<: *compile_definition
compile:debian-9-mini:
image: $REGISTRY_HUB:debian-9-mini
variables:
CONFIGURE_OPTS: "$CONFIGURE_MINI"
MAKE_FLAGS: "CFLAGS=-Werror"
<<: *compile_definition
compile:debian-9-full:
image: $REGISTRY_HUB:debian-9-full
variables:
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
MAKE_FLAGS: "CFLAGS=-Werror"
<<: *compile_definition
2017-07-15 08:19:38 +00:00
compile:fedora-26-clang:
image: $REGISTRY_HUB:fedora-26-clang
variables:
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
<<: *compile_definition
archive:
stage: archive
image: $REGISTRY_HUB:debian-8-full
dependencies:
- compile:debian-8-full
before_script:
- ./config.status --quiet || ./configure "$CONFIGURE_MINI"
script:
- make dist
artifacts:
paths:
- sane-backends-*.tar.gz