[librsvg: 1/2] Let the CI build with srcdir != builddir again
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/2] Let the CI build with srcdir != builddir again
- Date: Thu, 8 Oct 2020 08:52:29 +0000 (UTC)
commit 30c0cb123d8b5e72bf58ecd19c2ee63029ec642a
Author: Sven Neumann <sven svenfoo org>
Date: Thu Oct 8 09:18:44 2020 +0200
Let the CI build with srcdir != builddir again
This got lost in the recent CI overhaul and IMO it is a useful thing
to do as it catches common problems in Makefiles that would otherwise
only show up later when 'make distcheck' is run.
Also upload more artifacts when tests are failing, and none if all
the tests pass.
.gitlab-ci.yml | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f299169d..d7f2e3f9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -110,13 +110,16 @@ cargo_test:
- job: cargo_test
artifacts: false
script:
- - sudo ./autogen.sh --enable-gtk-doc --enable-vala
+ - mkdir -p _build
+ - cd _build
+ - sudo ../autogen.sh --enable-gtk-doc --enable-vala
- sudo -E make
- sudo -E make check
artifacts:
- when: 'always'
+ when: 'on_failure'
paths:
- - tests/output/*-diff.png
+ - _build/tests/*.log
+ - _build/tests/output
expire_in: 1 day
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
@@ -150,7 +153,9 @@ debian:testing:
- export PATH=$PATH:/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0
script:
# TODO: delete after sudo is no longer needed
- - ./autogen.sh --enable-gtk-doc --enable-vala
+ - mkdir -p _build
+ - cd _build
+ - ../autogen.sh --enable-gtk-doc --enable-vala
- make
- make check
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]