Commit c9fb0345 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

working on same-stage dependencies

parent 17436fbe
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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: