From 1c7ddea41772ee190d29b3f037572ce4294ef925 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Wed, 13 Sep 2023 15:40:40 +0200
Subject: [PATCH] ci: Fix pipeline.

---
 .gitlab-ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6464b73d..5d59932d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -89,6 +89,8 @@ build-linux:
   stage: build
   tags:
     - linux
+  rules:
+    - if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
   needs:
     - job: dl-mage-linux
       artifacts: true
@@ -138,6 +140,8 @@ build-windows:
   stage: build
   tags:
     - wine
+  rules:
+    - if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
   needs:
     - job: dl-mage-windows
       artifacts: true
@@ -167,6 +171,11 @@ build-windows:
 
 test:
   stage: test
+  tags:
+    - linux
+  needs:
+    - job: set-version
+      artifacts: true
   script:
     - echo "TODO PAMHYR tests"
 
-- 
GitLab