2016-06-12 11:32:30 +00:00
|
|
|
# .gitlab-ci.yml -- to test some source code build scenarios
|
2018-02-21 12:09:59 +00:00
|
|
|
# Copyright (C) 2016-2018 Olaf Meeuwissen
|
2016-06-12 11:32:30 +00:00
|
|
|
#
|
|
|
|
# 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"
|
2016-06-12 11:32:30 +00:00
|
|
|
|
2017-06-02 12:08:44 +00:00
|
|
|
stages:
|
2017-06-17 03:38:21 +00:00
|
|
|
- prepare
|
|
|
|
- compile
|
|
|
|
- archive
|
2017-06-02 12:08:44 +00:00
|
|
|
|
2017-06-17 03:38:21 +00:00
|
|
|
prepare:
|
2018-03-15 00:22:53 +00:00
|
|
|
image: $REGISTRY_HUB:debian-9-base
|
2017-06-17 03:38:21 +00:00
|
|
|
stage: prepare
|
2017-06-02 12:08:44 +00:00
|
|
|
script:
|
|
|
|
- find -path ./.git -prune -o -type f | xargs tools/style-check.sh
|
2017-06-17 03:38:21 +00:00
|
|
|
- sed -i '/^AC_INIT/s/,.*/,m4_esyscmd_s([git describe --dirty]),/' configure.ac
|
|
|
|
- autoconf --force
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- configure
|
|
|
|
expire_in: 1 day
|
2017-06-02 12:08:44 +00:00
|
|
|
|
2017-06-17 03:38:21 +00:00
|
|
|
.compile_template: &compile_definition
|
|
|
|
stage: compile
|
2016-06-12 11:32:30 +00:00
|
|
|
script:
|
2016-07-09 06:10:00 +00:00
|
|
|
- ./configure $CONFIGURE_OPTS
|
2016-09-21 13:11:09 +00:00
|
|
|
- make -j2 -k $MAKE_FLAGS
|
2016-06-12 11:32:30 +00:00
|
|
|
|
2017-06-17 03:38:21 +00:00
|
|
|
compile:debian-8-mini:
|
2016-07-09 06:10:00 +00:00
|
|
|
image: $REGISTRY_HUB:debian-8-mini
|
|
|
|
variables:
|
|
|
|
CONFIGURE_OPTS: "$CONFIGURE_MINI"
|
2016-09-25 08:06:15 +00:00
|
|
|
MAKE_FLAGS: "CFLAGS=-Werror"
|
2017-06-17 03:38:21 +00:00
|
|
|
<<: *compile_definition
|
2016-07-09 06:10:00 +00:00
|
|
|
|
2017-06-17 03:38:21 +00:00
|
|
|
compile:debian-8-full:
|
2016-06-12 11:32:30 +00:00
|
|
|
image: $REGISTRY_HUB:debian-8-full
|
2016-06-14 12:24:53 +00:00
|
|
|
variables:
|
2016-07-09 06:10:00 +00:00
|
|
|
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
|
2016-09-21 13:11:09 +00:00
|
|
|
MAKE_FLAGS: "CFLAGS=-Werror"
|
2017-06-17 03:38:21 +00:00
|
|
|
<<: *compile_definition
|
2016-06-12 11:32:30 +00:00
|
|
|
|
2017-06-22 11:36:59 +00:00
|
|
|
compile:debian-9-mini:
|
|
|
|
image: $REGISTRY_HUB:debian-9-mini
|
|
|
|
variables:
|
|
|
|
CONFIGURE_OPTS: "$CONFIGURE_MINI"
|
2017-07-12 12:31:31 +00:00
|
|
|
MAKE_FLAGS: "CFLAGS=-Werror"
|
2017-06-22 11:36:59 +00:00
|
|
|
<<: *compile_definition
|
|
|
|
|
|
|
|
compile:debian-9-full:
|
|
|
|
image: $REGISTRY_HUB:debian-9-full
|
|
|
|
variables:
|
|
|
|
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
|
2017-07-12 12:31:31 +00:00
|
|
|
MAKE_FLAGS: "CFLAGS=-Werror"
|
2017-06-22 11:36:59 +00:00
|
|
|
<<: *compile_definition
|
2018-03-15 00:22:53 +00:00
|
|
|
after_script:
|
|
|
|
- make -C doc html-pages
|
2018-10-10 15:46:55 +00:00
|
|
|
- rm -rf lists && mkdir lists && mv doc/*.html lists/
|
2018-03-15 00:22:53 +00:00
|
|
|
- cd doc && doxygen doxygen-sanei.conf
|
|
|
|
cache:
|
|
|
|
untracked: true
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- configure
|
|
|
|
- lists
|
|
|
|
- doc/sanei-html
|
|
|
|
expire_in: 1 day
|
2017-06-22 11:36:59 +00:00
|
|
|
|
2018-05-31 13:15:04 +00:00
|
|
|
compile:fedora-27-clang:
|
|
|
|
image: $REGISTRY_HUB:fedora-27-clang
|
2017-07-15 08:19:38 +00:00
|
|
|
variables:
|
|
|
|
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
|
|
|
|
<<: *compile_definition
|
|
|
|
|
2018-05-31 13:15:04 +00:00
|
|
|
compile:fedora-28-clang:
|
|
|
|
image: $REGISTRY_HUB:fedora-28-clang
|
2018-03-15 00:04:31 +00:00
|
|
|
variables:
|
|
|
|
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
|
|
|
|
<<: *compile_definition
|
|
|
|
|
2018-10-10 15:30:20 +00:00
|
|
|
compile:alpine-3.8-musl:
|
|
|
|
image: $REGISTRY_HUB:alpine-3.8-musl
|
2018-03-15 00:41:58 +00:00
|
|
|
variables:
|
|
|
|
CONFIGURE_OPTS: "$CONFIGURE_MINI $CONFIGURE_FULL"
|
|
|
|
<<: *compile_definition
|
|
|
|
|
2017-06-17 03:38:21 +00:00
|
|
|
archive:
|
|
|
|
stage: archive
|
2018-03-15 00:22:53 +00:00
|
|
|
image: $REGISTRY_HUB:debian-9-full
|
2017-06-17 03:38:21 +00:00
|
|
|
dependencies:
|
2018-03-15 00:22:53 +00:00
|
|
|
- compile:debian-9-full
|
2017-06-17 03:38:21 +00:00
|
|
|
before_script:
|
|
|
|
- ./config.status --quiet || ./configure "$CONFIGURE_MINI"
|
|
|
|
script:
|
|
|
|
- make dist
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- sane-backends-*.tar.gz
|
2018-02-21 11:50:07 +00:00
|
|
|
- lists
|
2018-03-10 01:14:06 +00:00
|
|
|
- doc/sanei-html
|