[gimp/wip/Jehan/gitlab-ci-more-win] More schedule finesse!
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/gitlab-ci-more-win] More schedule finesse!
- Date: Thu, 6 May 2021 14:30:05 +0000 (UTC)
commit a5df5b95a07a5712c04acca12a999338b3facaa5
Author: Jehan <jehan girinstud io>
Date: Thu May 6 16:24:03 2021 +0200
More schedule finesse!
The native and Win64 builds should not be run in schedule pipelines
(they are already run far enough).
Also use variables to be able to run the Clang build and the Win32
builds as different schedules.
.gitlab-ci.yml | 47 +++++++++++++++++++++++++++++++++++++----------
1 file changed, 37 insertions(+), 10 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb052b381b..7c32e2d83d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,6 +16,8 @@ variables:
## prepare docker images ##
build-image:
+ except:
+ - schedules
stage: prepare
variables:
GIT_STRATEGY: none
@@ -35,6 +37,8 @@ build-image:
build-image-win64:
+ except:
+ - schedules
rules:
- if: '$CI_COMMIT_TAG == null'
stage: prepare
@@ -56,8 +60,8 @@ build-image-win64:
build-image-win32:
- only:
- - schedules
+ rules:
+ - if: '$SCHEDULE_WIN32 != null && $CI_PIPELINE_SOURCE == "schedule"'
stage: prepare
variables:
GIT_STRATEGY: none
@@ -79,6 +83,9 @@ build-image-win32:
## GNU/Linux 64-bit CIs (Debian testing) ##
deps-debian:
+ rules:
+ - if: '$SCHEDULE_CLANG != null && $CI_PIPELINE_SOURCE == "schedule"'
+ - if: '$CI_PIPELINE_SOURCE != "schedule"'
stage: dependencies
image: $CI_REGISTRY_IMAGE:build-debian-latest
cache:
@@ -136,6 +143,8 @@ deps-debian:
needs: ["deps-debian"]
gimp-autotools-debian:
+ except:
+ - schedules
extends: .gimp-debian-base
script:
- mkdir _build
@@ -147,6 +156,8 @@ gimp-autotools-debian:
- make check
gimp-distcheck-debian:
+ except:
+ - schedules
extends: .gimp-debian-base
script:
- mkdir _build
@@ -159,6 +170,8 @@ gimp-distcheck-debian:
- make -j "$(nproc)" distcheck
gimp-meson-debian:
+ except:
+ - schedules
rules:
- if: '$CI_COMMIT_TAG == null'
extends: .gimp-debian-base
@@ -169,8 +182,8 @@ gimp-meson-debian:
- ninja -C _build test
gimp-clang-debian:
- only:
- - schedules
+ rules:
+ - if: '$SCHEDULE_CLANG != null && $CI_PIPELINE_SOURCE == "schedule"'
extends: .gimp-debian-base
variables:
CC: "clang"
@@ -187,6 +200,8 @@ gimp-clang-debian:
## WINDOWS 64-bit CI (native MSYS2) ##
deps-win64-native:
+ except:
+ - schedules
stage: dependencies
variables:
MSYSTEM: "MINGW64"
@@ -208,6 +223,8 @@ deps-win64-native:
needs: []
gimp-win64-native:
+ except:
+ - schedules
stage: gimp
variables:
MSYSTEM: "MINGW64"
@@ -231,6 +248,8 @@ gimp-win64-native:
## WINDOWS 64-bit CI (cross-build crossroad) ##
deps-win64:
+ except:
+ - schedules
rules:
- if: '$CI_COMMIT_TAG == null'
stage: dependencies
@@ -264,6 +283,8 @@ deps-win64:
needs: ["build-image-win64"]
gimp-win64:
+ except:
+ - schedules
rules:
- if: '$CI_COMMIT_TAG == null'
stage: gimp
@@ -297,8 +318,8 @@ gimp-win64:
## WINDOWS 32-bit CI (cross-build crossroad) ##
deps-win32:
- only:
- - schedules
+ rules:
+ - if: '$SCHEDULE_WIN32 != null && $CI_PIPELINE_SOURCE == "schedule"'
stage: dependencies
image: $CI_REGISTRY_IMAGE:build-win32-latest
variables:
@@ -327,8 +348,8 @@ deps-win32:
needs: ["build-image-win32"]
gimp-win32:
- only:
- - schedules
+ rules:
+ - if: '$SCHEDULE_WIN32 != null && $CI_PIPELINE_SOURCE == "schedule"'
stage: gimp
image: $CI_REGISTRY_IMAGE:build-win32-latest
dependencies:
@@ -358,6 +379,8 @@ gimp-win32:
- gimp-prefix/
cppcheck:
+ except:
+ - schedules
stage: analysis
before_script:
- apt-get update
@@ -378,6 +401,8 @@ cppcheck:
## Ready-to-distribute ##
sources:
+ except:
+ - schedules
stage: distribution
dependencies:
- gimp-distcheck-debian
@@ -397,6 +422,8 @@ sources:
needs: ["gimp-distcheck-debian"]
win64-nightly:
+ except:
+ - schedules
rules:
- if: '$CI_COMMIT_TAG == null'
stage: distribution
@@ -474,8 +501,8 @@ win64-nightly:
needs: ["gimp-win64"]
win32-nightly:
- only:
- - schedules
+ rules:
+ - if: '$SCHEDULE_WIN32 != null && $CI_PIPELINE_SOURCE == "schedule"'
stage: distribution
dependencies:
- gimp-win32
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]