From c9fb03456f5b0981f3000095602a3ede9956a42a Mon Sep 17 00:00:00 2001 From: Ari Trachtenberg Date: Fri, 13 Sep 2024 14:49:13 -0400 Subject: [PATCH] working on same-stage dependencies --- ci_cd/lab1.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ci_cd/lab1.yml b/ci_cd/lab1.yml index a2a4145..c2bfe24 100644 --- a/ci_cd/lab1.yml +++ b/ci_cd/lab1.yml @@ -2,6 +2,21 @@ prebuild_lab_1: stage: lab1 script: + - | + # Check if lab0.cpp exists + if [ ! -f "lab1.cpp" ]; then + echo "lab1.cpp does not exist"; + exit 1; + fi + + # Check if lab0.cpp has been merged into master + git fetch origin master # Fetch the latest master branch + if git ls-tree -r origin/master --name-only | grep -q 'lab0.cpp'; then + echo "Lab 0 complete"; + else + echo "Please have lab 0 merged first"; + exit 1; + fi - git clone https://agile.bu.edu/gitlab/configs/ec327/lab-configs/current.git base_1 artifacts: paths: -- GitLab