[gnome-calculator/wip/3v1n0/ci-tests: 2/4] gitlab-ci: run tests after building
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/wip/3v1n0/ci-tests: 2/4] gitlab-ci: run tests after building
- Date: Tue, 11 Sep 2018 18:29:29 +0000 (UTC)
commit 1acd64e9283d8d818d161cd5ca4c8b40a81cb78b
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue Sep 11 07:37:38 2018 -0500
gitlab-ci: run tests after building
.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]