blob: 5326c2c57b84848ee88b55a6be4bee67adbe758c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
variables:
ARCH_PKGS: 'xorg-util-macros autoconf automake make gettext pkg-config gcc grep m4'
BUILDDIR: '_build'
INSTDIR: '$HOME/_inst'
CONFIGURE_ARGS: ''
MAKE_EXTRA_ARG: ''
# We use arch because the image updates frequently and we're not stuck
# forever in the update phase
.default_setup:
image: archlinux/base
before_script:
- pacman -S --refresh
- pacman -S --sysupgrade --noconfirm
- pacman -S --noconfirm $ARCH_PKGS
.default_build:
extends: .default_setup
script:
- rm -rf "$BUILDDIR"
- mkdir -p "$BUILDDIR"
- mkdir -p "$INSTDIR"
- autoreconf -ivf
- pushd "$BUILDDIR"
- ../configure --prefix="$PWD/../$INSTDIR" --disable-silent-rules --disable-runtime-deps "$CONFIGURE_ARGS"
- make
- if test x"$MAKE_EXTRA_COMMAND" != "x"; then make $MAKE_EXTRA_COMMAND; fi
make:
extends: .default_build
stage: build
make_check:
extends: .default_build
stage: build
variables:
MAKE_EXTRA_COMMAND: "check"
make_distcheck:
extends: .default_build
stage: build
variables:
MAKE_EXTRA_COMMAND: "distcheck"
|