[librsvg/bochecha/srcdir-builddir: 2/2] ci: Build with srcdir != builddir



commit 6d6e4ec17e419e7d75289634b030e77908ade1c6
Author: Mathieu Bridon <bochecha daitauha fr>
Date:   Mon Sep 10 14:01:43 2018 +0200

    ci: Build with srcdir != builddir
    
    This should prevent issues like the one fixed in the previous commit to
    creep back in.

 .gitlab-ci.yml | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1093ad63..2bbbbce8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,8 +40,11 @@ stages:
     - export CARGO_HOME="${PWD}/.cargo_cache"
   script:
     - rustc --version && cargo --version
-    - ./autogen.sh --enable-gtk-doc --enable-vala
-    - make check
+    - |
+      mkdir _build
+      cd _build
+      ../autogen.sh --enable-gtk-doc --enable-vala
+      make check
 
   artifacts:
     when: on_failure
@@ -141,8 +144,11 @@ tarball:
     LIBRSVG_DEBUG: "yes"
   script:
     - rustc --version && cargo --version
-    - ./autogen.sh --enable-gtk-doc --enable-vala
-    - make distcheck DESTDIR=/tmp/distcheck
+    - |
+      mkdir _build
+      cd _build
+      ../autogen.sh --enable-gtk-doc --enable-vala
+      make distcheck DESTDIR=/tmp/distcheck
   <<: *stage_2
 
 # STAGE 2 CROSS DISTRO TESTS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]