From 77cc649365b1f46f15516431293b85ac921b6844 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 2 Apr 2021 18:04:12 +0200
Subject: [PATCH] CI: simplify Julia jobs by creating Artifacts.toml on eris

---
 .gitlab-ci.yml | 26 ++++----------------------
 1 file changed, 4 insertions(+), 22 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1274ece3..01d1b231 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,6 @@ variables:
 
 stages:
   - build
-  - aggregate
   - deploy
 
 build_linux_32:
@@ -85,29 +84,8 @@ build_macOS:
     paths:
       - $CI_COMMIT_SHA/macos-x86_64/*
 
-aggregate_julia:
-  stage: aggregate
-  dependencies:
-    - build_linux_32
-    - build_linux_64
-    - build_windows_32
-    - build_windows_64
-    - build_macOS
-  script:
-    - PATH=$PATH:/usr/local/julia/$JULIA_VERSION/bin scripts/create-julia-artifacts-toml $CI_COMMIT_SHA https://www.dynare.org/preprocessor
-  artifacts:
-    paths:
-      - $CI_COMMIT_SHA/Artifacts.toml
-
 deploy_julia:
   stage: deploy
-  dependencies:
-    - build_linux_32
-    - build_linux_64
-    - build_windows_32
-    - build_windows_64
-    - build_macOS
-    - aggregate_julia
   tags:
     - restricted
   rules:
@@ -116,4 +94,8 @@ deploy_julia:
       allow_failure: true
     - when: never
   script:
+    - PATH=$PATH:/usr/local/julia/$JULIA_VERSION/bin scripts/create-julia-artifacts-toml $CI_COMMIT_SHA https://www.dynare.org/preprocessor
     - cp -R $CI_COMMIT_SHA /srv/www.dynare.org/preprocessor/
+  artifacts:
+    paths:
+      - $CI_COMMIT_SHA/Artifacts.toml
-- 
GitLab