From c09d04f3265172e80adf3eace8b9a2574e68635d Mon Sep 17 00:00:00 2001 From: Wataru Otsubo Date: Tue, 17 Sep 2024 14:20:40 +0200 Subject: [PATCH] Update .gitlab-ci.yml file to run CompatHelper only on schedules --- .gitlab-ci.yml | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c40f263..ddaa795 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,24 +41,26 @@ pages: - public only: - main -# CompatHelper: -# image: julia:1.10 # Set to the Julia version you want to use -# stage: test # You can place this in any stage that makes sense for your setup -# before_script: -# - apt-get update -qq && apt-get install -y git -# - | -# julia --color=yes -e " -# import Pkg; -# name = \"CompatHelper\"; -# uuid = \"aa819f21-2bde-4658-8897-bab36330d9b7\"; -# version = \"3\"; -# Pkg.add(; name, uuid, version)" -# script: -# - | -# julia --color=yes -e ' -# import CompatHelper; -# config = CompatHelper.GitLabCI(; -# api_hostname="https://gitlab.cern.ch/api/v4", -# clone_hostname="gitlab.cern.ch", -# ) -# CompatHelper.main(ENV, config)' +CompatHelper: + image: julia:1.10 # Set to the Julia version you want to use + stage: test # You can place this in any stage that makes sense for your setup + only: + - schedules + before_script: + - apt-get update -qq && apt-get install -y git + - | + julia --color=yes -e " + import Pkg; + name = \"CompatHelper\"; + uuid = \"aa819f21-2bde-4658-8897-bab36330d9b7\"; + version = \"3\"; + Pkg.add(; name, uuid, version)" + script: + - | + julia --color=yes -e ' + import CompatHelper; + config = CompatHelper.GitLabCI(; + api_hostname="https://gitlab.cern.ch/api/v4", + clone_hostname="gitlab.cern.ch", + ) + CompatHelper.main(ENV, config)'