-.artifacts-meson: &artifacts-meson
- when: always
- paths:
- - _build/meson-logs
-
-.artifacts-autotools: &artifacts-autotools
- when: always
- paths:
- - _build/*.log
- - _build/*/*.log
- - _build/*/*/*.log
+.build:
+ stage: build
+ image: archlinux/base:latest
-.meson-build: &meson-build
- - meson _build
- -D enable-f16c=true
- -D enable-mmx=true
- -D enable-sse=true
- -D enable-sse2=true
- -D enable-sse3=true
- -D enable-sse4_1=true
- -D with-docs=true
- ${LCMS_OPTION}
- - ninja -C _build
- - ninja -C _build test
+.meson-build:
+ extends: .build
+ artifacts:
+ when: always
+ paths:
+ - _build/meson-logs
+ script:
+ - meson _build
+ -D enable-f16c=true
+ -D enable-mmx=true
+ -D enable-sse=true
+ -D enable-sse2=true
+ -D enable-sse3=true
+ -D enable-sse4_1=true
+ -D with-docs=true
+ ${LCMS_OPTION}
+ - ninja -C _build
+ - ninja -C _build test
-.autotools-build: &autotools-build
- - mkdir _build
- - cd _build
- - ../autogen.sh
- --enable-docs
- --enable-f16c
- --enable-mmx
- --enable-sse
- --enable-sse2
- --enable-sse3
- --enable-sse4_1
- ${LCMS_OPTION}
- - make
- - make check
+.autotools-build:
+ extends: .build
+ artifacts:
+ when: always
+ paths:
+ - _build/*.log
+ - _build/*/*.log
+ - _build/*/*/*.log
+ script:
+ - mkdir _build
+ - cd _build
+ - ../autogen.sh
+ --enable-docs
+ --enable-f16c
+ --enable-mmx
+ --enable-sse
+ --enable-sse2
+ --enable-sse3
+ --enable-sse4_1
+ ${LCMS_OPTION}
+ - make
+ - make check
latest-meson-lcms:
- stage: build
- image: archlinux/base:latest
- artifacts: *artifacts-meson
+ extends: .meson-build
variables:
LCMS_OPTION : "-Dwith-lcms=true"
before_script:
meson
lcms2
git
- script: *meson-build
latest-meson-nolcms:
- stage: build
- image: archlinux/base:latest
- artifacts: *artifacts-meson
+ extends: .meson-build
variables:
LCMS_OPTION : "-Dwith-lcms=false"
before_script:
meson
lcms2
git
- script: *meson-build
latest-autotools-lcms:
- stage: build
- image: archlinux/base:latest
- artifacts: *artifacts-autotools
+ extends: .autotools-build
variables:
LCMS_OPTION : "--with-lcms"
before_script:
base-devel
lcms2
git
- script: *autotools-build
latest-autotools-nolcms:
- stage: build
- image: archlinux/base:latest
- artifacts: *artifacts-autotools
+ extends: .autotools-build
variables:
LCMS_OPTION : "--without-lcms"
before_script:
- pacman -Syu --noconfirm --needed
base-devel
git
- script: *autotools-build