[glibmm/kjellahl/testci] CI: Testing artifacts, take 2
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/kjellahl/testci] CI: Testing artifacts, take 2
- Date: Thu, 17 Mar 2022 09:29:03 +0000 (UTC)
commit 72fe0c59dd51356e10479849749f4e9d87bf3f95
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Mar 17 10:28:13 2022 +0100
CI: Testing artifacts, take 2
.gitlab-ci.yml | 70 +++++-----------------------------------------------------
1 file changed, 6 insertions(+), 64 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index db2782e7..586dc2e1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,8 +55,11 @@ build_deps:
- mkdir _build && cd _build
- meson --prefix=/usr --libdir=lib -Dbuild-documentation=false -Dbuild-examples=false -Dbuildtype=release
- meson compile
+ - meson configure --prefix=`pwd`/../../install
- cd ../..
- fi
+ - cd libsigc/_build
+ - meson install
cache:
key: build-deps
paths:
@@ -64,7 +67,7 @@ build_deps:
policy: pull-push
artifacts:
paths:
- - libsigc/
+ - install/
expire_in: 1 day
autotools_build:
@@ -73,32 +76,13 @@ autotools_build:
variables:
DEPENDENCIES: $MESON_DEPS make autoconf
script:
- - ninja -C libsigc/_build install
+ - cp -r install/* /usr
- ./autogen.sh --enable-warnings=fatal --prefix=/usr
- make
- make check
- make install
allow_failure: true
-debug_build:
- extends: .build_default
- stage: build
- variables:
- DEPENDENCIES: $MESON_DEPS
- script:
- - ninja -C libsigc/_build install
- - mkdir _build && cd _build
- # -Ddebug=true + -Doptimization=0 correspond to -Dbuildtype=debug
- - meson --prefix=/usr --libdir=lib -Ddebug=true -Doptimization=0 -Dwarnings=fatal
- - meson compile
- - meson test
- - meson install
- artifacts:
- when: on_failure
- paths:
- - _build/meson-logs/testlog.txt
- - _build/meson-logs/meson-log.txt
- expire_in: 1 week
release_gcc_10_build:
extends: .build_default
@@ -106,7 +90,7 @@ release_gcc_10_build:
variables:
DEPENDENCIES: $MESON_DEPS g++-10
script:
- - ninja -C libsigc/_build install
+ - cp -r install/* /usr
- mkdir _build && cd _build
# -Ddebug=false + -Doptimization=3 correspond to -Dbuildtype=release
- CC=gcc-10 CXX=g++-10 meson --prefix=/usr --libdir=lib -Ddebug=false -Doptimization=3 -Dwarnings=fatal
@@ -118,48 +102,6 @@ release_gcc_10_build:
paths:
- _build/docs/reference
-release_gcc_11_build:
- extends: .build_default
- stage: build
- variables:
- DEPENDENCIES: $MESON_DEPS g++-11
- script:
- - ninja -C libsigc/_build install
- - mkdir _build && cd _build
- # -Ddebug=false + -Doptimization=3 correspond to -Dbuildtype=release
- - CC=gcc-11 CXX=g++-11 meson --prefix=/usr --libdir=lib -Ddebug=false -Doptimization=3 -Dwarnings=fatal
- - meson compile
- - meson test
- - meson install
- allow_failure: true
- artifacts:
- when: on_failure
- paths:
- - _build/meson-logs/testlog.txt
- - _build/meson-logs/meson-log.txt
- expire_in: 1 week
-
-release_clang_build:
- extends: .build_default
- stage: build
- variables:
- DEPENDENCIES: $MESON_DEPS clang
- script:
- - ninja -C libsigc/_build install
- - mkdir _build && cd _build
- # -Ddebug=false + -Doptimization=3 correspond to -Dbuildtype=release
- - CC=clang CXX=clang++ meson --prefix=/usr --libdir=lib -Ddebug=false -Doptimization=3 -Dwarnings=fatal
- - meson compile
- - meson test
- - meson install
- allow_failure: true
- artifacts:
- when: on_failure
- paths:
- - _build/meson-logs/testlog.txt
- - _build/meson-logs/meson-log.txt
- expire_in: 1 week
-
# Publish reference documentation at gnome.pages.gitlab.gnome.org/glibmm
pages:
stage: deploy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]