[gnome-calculator/wip/3v1n0/ci-tests] run tests on ci
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/wip/3v1n0/ci-tests] run tests on ci
- Date: Wed, 12 Sep 2018 11:55:33 +0000 (UTC)
commit 4e6ccad7f4bcc67a74a2da296e508a2de600f0a7
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue Sep 11 07:37:38 2018 -0500
run tests on ci
.gitlab-ci.yml | 46 ++++++++++++++++++++++++++++++++++++----------
1 file changed, 36 insertions(+), 10 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 48b0f9a5..c658fe1f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,16 +1,42 @@
-build-ubuntu:
- image: ubuntu:rolling
+.build_template: &meson_build
+ stage: build
+ script:
+ - meson _build .
+ - ninja -C _build install
+
+.test_template: &meson_test
+ stage: test
+ script:
+ - ninja -C _build test
+
+.before_script_template: &ubuntu_before_script
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
- script:
- - meson _build
- - ninja -C _build install
-build-fedora:
- image: fedora:latest
+.before_script_template: &fedora_before_script
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
+
+build:fedora:
+ image: fedora:latest
+ before_script:
+ <<: *fedora_before_script
+ <<: *meson_build
+
+build:ubuntu:
+ image: ubuntu:rolling
+ <<: *ubuntu_before_script
+ <<: *meson_build
+
+test:ubuntu:
+ dependencies:
+ - build:ubuntu
+ <<: *ubuntu_before_script
+ <<: *meson_test
+
+test:fedora:
+ dependencies:
+ - build:fedora
+ <<: *fedora_before_script
+ <<: *meson_test
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]