Loading ci_cd/lab0.yml +4 −4 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ stages: ### Lab 0 prebuild_0: stage: LabZero <<: *common_rules script: - git clone https://agile.bu.edu/gitlab/configs/ec327/lab-configs/current.git base when: on_success # only runs if the previous stage succeeds Loading @@ -16,11 +17,11 @@ prebuild_0: paths: - base - lab0.cpp <<: *common_rules tags: [c++-17] compile_0: stage: LabZero <<: *common_rules script: - echo "Compiling lab0.cpp" - g++ -c lab0.cpp Loading @@ -28,11 +29,11 @@ compile_0: paths: - base - lab0.* <<: *common_rules tags: [c++-17] lint_0: stage: LabZero <<: *common_rules script: - echo "Static code check of lab0.cpp" - cppcheck --check-config --enable=all --inconclusive --error-exitcode=1 lab0.cpp tests/LabZero.cpp Loading @@ -43,11 +44,11 @@ lint_0: paths: - base - lab0.* <<: *common_rules tags: [cppcheck] test_0: stage: LabZero <<: *common_rules script: - echo "Testing Lab 0"; - find . -type f Loading @@ -58,5 +59,4 @@ test_0: - ./a.out needs: - lint_0 <<: *common_rules tags: [shell] No newline at end of file ci_cd/labm1.yml +1 −1 Original line number Diff line number Diff line Loading @@ -9,13 +9,13 @@ stages: ### Lab -1 prebuild_m1: stage: LabMinusOne <<: *common_rules script: - | if [ ! -f 'lab-1.cpp' ]; then echo "ERROR - could not find file lab-1.cpp"; exit 1; fi <<: *common_rules tags: [shell] compile_m1: Loading Loading
ci_cd/lab0.yml +4 −4 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ stages: ### Lab 0 prebuild_0: stage: LabZero <<: *common_rules script: - git clone https://agile.bu.edu/gitlab/configs/ec327/lab-configs/current.git base when: on_success # only runs if the previous stage succeeds Loading @@ -16,11 +17,11 @@ prebuild_0: paths: - base - lab0.cpp <<: *common_rules tags: [c++-17] compile_0: stage: LabZero <<: *common_rules script: - echo "Compiling lab0.cpp" - g++ -c lab0.cpp Loading @@ -28,11 +29,11 @@ compile_0: paths: - base - lab0.* <<: *common_rules tags: [c++-17] lint_0: stage: LabZero <<: *common_rules script: - echo "Static code check of lab0.cpp" - cppcheck --check-config --enable=all --inconclusive --error-exitcode=1 lab0.cpp tests/LabZero.cpp Loading @@ -43,11 +44,11 @@ lint_0: paths: - base - lab0.* <<: *common_rules tags: [cppcheck] test_0: stage: LabZero <<: *common_rules script: - echo "Testing Lab 0"; - find . -type f Loading @@ -58,5 +59,4 @@ test_0: - ./a.out needs: - lint_0 <<: *common_rules tags: [shell] No newline at end of file
ci_cd/labm1.yml +1 −1 Original line number Diff line number Diff line Loading @@ -9,13 +9,13 @@ stages: ### Lab -1 prebuild_m1: stage: LabMinusOne <<: *common_rules script: - | if [ ! -f 'lab-1.cpp' ]; then echo "ERROR - could not find file lab-1.cpp"; exit 1; fi <<: *common_rules tags: [shell] compile_m1: Loading