[geary/wip/gitlab-ci] Add dependencies between build and install/test so it isn't rebuilt.



commit 66fce97d0791ef1879393df2cb47dcbbce09ad0d
Author: Michael James Gratton <mike vee net>
Date:   Sun Jun 10 17:43:20 2018 +1000

    Add dependencies between build and install/test so it isn't rebuilt.

 .gitlab-ci.yml | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6c649b6b..b089c47b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,6 +11,7 @@ stages:
   - test
 
 variables:
+  BUILD_DIR: build
   DEPENDENCIES: vala gobject-introspection-devel
                 meson desktop-file-utils libcanberra-devel libgee-devel
                 glib2-devel gmime-devel gtk3-devel libnotify-devel sqlite-devel
@@ -30,15 +31,20 @@ build:
   script:
     - meson --buildtype=debug build
     - ninja -v -C build
-
+  artifacts:
+    paths:
+      - $BUILD_DIR/
 
 install:
-  stage: build
+  stage: install
   script:
-    - ninja -v -C build install
-
+    - ninja -v -C $BUILD_DIR install
+  dependencies:
+  - build
 
 test:
   stage: test
   script:
-    - meson test -v --no-stdsplit -C build engine-tests
+    - meson test -v --no-stdsplit -C $BUILD_DIR engine-tests
+  dependencies:
+  - build


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