Loading ci_cd/lab0.yml +4 −2 Original line number Diff line number Diff line Loading @@ -3,7 +3,9 @@ stages: .only_run_if_lab0_available: &common_rules rules: - exists: exists: - lab0.cpp changes: - lab0.cpp ### Lab 0 Loading ci_cd/labm1.yml +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 Loading @@ -10,6 +17,7 @@ prebuild_m1: echo "ERROR - could not find file lab-1.cpp"; exit 1; fi <<: *common_rules tags: [shell] compile_m1: Loading @@ -19,6 +27,7 @@ compile_m1: - g++ -c lab-1.cpp needs: - prebuild_m1 <<: *common_rules tags: [c++-17] lint_m1: Loading @@ -29,6 +38,7 @@ lint_m1: allow_failure: false needs: - compile_m1 <<: *common_rules tags: [cppcheck] test_m1: Loading @@ -42,4 +52,5 @@ test_m1: fi needs: - lint_m1 <<: *common_rules tags: [shell] No newline at end of file Loading
ci_cd/lab0.yml +4 −2 Original line number Diff line number Diff line Loading @@ -3,7 +3,9 @@ stages: .only_run_if_lab0_available: &common_rules rules: - exists: exists: - lab0.cpp changes: - lab0.cpp ### Lab 0 Loading
ci_cd/labm1.yml +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 Loading @@ -10,6 +17,7 @@ prebuild_m1: echo "ERROR - could not find file lab-1.cpp"; exit 1; fi <<: *common_rules tags: [shell] compile_m1: Loading @@ -19,6 +27,7 @@ compile_m1: - g++ -c lab-1.cpp needs: - prebuild_m1 <<: *common_rules tags: [c++-17] lint_m1: Loading @@ -29,6 +38,7 @@ lint_m1: allow_failure: false needs: - compile_m1 <<: *common_rules tags: [cppcheck] test_m1: Loading @@ -42,4 +52,5 @@ test_m1: fi needs: - lint_m1 <<: *common_rules tags: [shell] No newline at end of file