Commit 6a4cc8d1 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

trying to fix the yml file

parent a62dfe7a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3,7 +3,9 @@ stages:

.only_run_if_lab0_available: &common_rules
  rules:
    - exists:
    exists:
      - lab0.cpp
    changes:
      - lab0.cpp

### Lab 0
+11 −0
Original line number Diff line number Diff line
stages:
  - LabMinusOne

.only_run_if_lab0_available: &common_rules
  rules:
    exists:
      - lab-1.cpp
    changes:
      - lab-1.cpp

### Lab -1
prebuild_m1:
  stage: LabMinusOne
@@ -10,6 +17,7 @@ prebuild_m1:
        echo "ERROR - could not find file lab-1.cpp";
        exit 1;
      fi
  <<: *common_rules
  tags: [shell]

compile_m1:
@@ -19,6 +27,7 @@ compile_m1:
    - g++ -c lab-1.cpp
  needs:
    - prebuild_m1
  <<: *common_rules
  tags: [c++-17]

lint_m1:
@@ -29,6 +38,7 @@ lint_m1:
  allow_failure: false
  needs:
    - compile_m1
  <<: *common_rules
  tags: [cppcheck]

test_m1:
@@ -42,4 +52,5 @@ test_m1:
      fi
  needs:
    - lint_m1
  <<: *common_rules
  tags: [shell]
 No newline at end of file