[gnome-calculator/wip/3v1n0/ci-tests] run tests on ci



commit b687984c3383695565825b3b74410649d977c60d
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Sep 11 07:37:38 2018 -0500

    run tests on ci

 .gitlab-ci.yml | 37 +++++++++++++++++++++++++++----------
 1 file changed, 27 insertions(+), 10 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 48b0f9a5..47a03c8b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,16 +1,33 @@
-build-ubuntu:
-  image: ubuntu:rolling
-  before_script:
-    - apt-get update
-    - apt-get install -q -y --no-install-recommends meson valac gcc gettext itstool libgtk-3-dev 
libgtksourceview-3.0-dev libmpc-dev libmpfr-dev libsoup2.4-dev libxml2-dev
+.build_template: &meson_build
+  stage: build
   script:
-    - meson _build
+    - meson _build .
     - ninja -C _build install
 
-build-fedora:
+.test_template: &meson_test
+  stage: test
+  script:
+    - ninja -C _build test
+
+build:fedora:
   image: fedora:latest
   before_script:
     - dnf install -y meson vala itstool gtk3-devel gtksourceview3-devel libmpc-devel mpfr-devel 
libsoup-devel libxml2-devel
-  script:
-    - meson _build
-    - ninja -C _build install
+  <<: *meson_build
+
+build:ubuntu:
+  image: ubuntu:rolling
+  before_script:
+    - apt-get update
+    - apt-get install -q -y --no-install-recommends meson valac gcc gettext itstool libgtk-3-dev 
libgtksourceview-3.0-dev libmpc-dev libmpfr-dev libsoup2.4-dev libxml2-dev
+  <<: *meson_build
+
+test:ubuntu:
+  dependencies:
+    - build:ubuntu
+  <<: *meson_test
+
+test:fedora:
+  dependencies:
+    - build:fedora
+  <<: *meson_test


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