From 0eecccb048fc0eaf028290267b6e7e7760d42a1c Mon Sep 17 00:00:00 2001
From: Ralf Jung <jung@mpi-sws.org>
Date: Wed, 18 Oct 2017 17:41:55 +0200
Subject: [PATCH] trigger an iris-atomic build in the deploy stage

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c5ae0e254..96047ac66 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,12 +32,20 @@ opam:
   stage: deploy
   script:
   # Send a trigger to the repository doing the work
-  - curl --fail -X POST -F "token=$OPAM_UPDATE_SECRET" -F "ref=master" -F "variables[REPO]=${CI_PROJECT_URL}.git" -F "variables[REF]=$CI_COMMIT_REF_NAME" -F "variables[SHA]=$CI_COMMIT_SHA" -F "variables[NAME]=$OPAM_PKG" https://gitlab.mpi-sws.org/api/v3/projects/581/trigger/builds
+  - curl --fail -X POST -F "token=$OPAM_UPDATE_SECRET" -F "ref=master" -F "variables[REPO]=${CI_PROJECT_URL}.git" -F "variables[REF]=$CI_COMMIT_REF_NAME" -F "variables[SHA]=$CI_COMMIT_SHA" -F "variables[NAME]=$OPAM_PKG" https://gitlab.mpi-sws.org/api/v4/projects/581/trigger/pipeline
   variables:
     OPAM_PKG: "coq-iris"
   only:
   - master
 
+reverse-deps:
+  stage: deploy
+  script:
+  # Send a trigger to reverse dependencies to have them tested
+  - curl --fail -X POST -F "token=$IRIS_ATOMIC_SECRET" -F "ref=master" https://gitlab.mpi-sws.org/api/v4/projects/250/trigger/pipeline
+  only:
+  - master
+
 build-coq8.7:
   <<: *template
   variables:
-- 
GitLab