[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:54:52 +0000 (UTC)
commit dc00397ab7b67288c1d36dee61f1672bef5e8d84
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue Sep 11 07:37:38 2018 -0500
run tests on ci
.gitlab-ci.yml | 40 ++++++++++++++++++++++++++++++++++------
1 file changed, 34 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 48b0f9a5..3e02e5cf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,16 +1,44 @@
-build-ubuntu:
+.before_script_template: &ubuntu_before_script
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
- script:
- - meson _build
- - ninja -C _build install
-build-fedora:
+.before_script_template: &fedora_before_script
image: fedora:latest
before_script:
- dnf install -y meson vala itstool gtk3-devel gtksourceview3-devel libmpc-devel mpfr-devel
libsoup-devel libxml2-devel
+
+.build_template: &meson_build
+ stage: build
script:
- - meson _build
+ - meson _build .
- ninja -C _build install
+ artifacts:
+ paths:
+ - _build/
+
+.test_template: &meson_test
+ stage: test
+ script:
+ - ninja -C _build test
+
+build:fedora:
+ <<: *fedora_before_script
+ <<: *meson_build
+
+build:ubuntu:
+ <<: *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]