Loading ci_cd/.gitlab-ci.yml +2 −1 Original line number Diff line number Diff line include: - local: 'ci_cd/labm1.yml' # Lab -1 - local: 'ci_cd/lab0.yml' # Lab 0 No newline at end of file ci_cd/lab0.yml 0 → 100644 +46 −0 Original line number Diff line number Diff line stages: - LabZero ### Lab 0 prebuild_0: stage: LabZero script: - | if [ ! -f 'lab0.cpp' ]; then echo "ERROR - could not find file lab0.cpp"; exit 1; fi - git clone https://agile.bu.edu/gitlab/configs/ec327/lab-configs/current.git base tags: [c++-17] compile_0: stage: LabZero script: - echo "Compiling lab0.cpp" - g++ -c lab0.cpp needs: - prebuild_m1 tags: [c++-17] lint_m1: stage: LabMinusOne script: - echo "Static code check of lab-1.cpp" - cppcheck --enable=all --inconclusive --error-exitcode=1 lab-1.cpp allow_failure: false needs: - compile_m1 tags: [cppcheck] test_m1: stage: LabMinusOne script: - echo "Testing Lab -1"; - | if ! grep -q "$GITLAB_USER_LOGIN" lab-1.cpp; then echo "Could not find your WikiName $GITLAB_USER_LOGIN in file lab-1.cpp"; exit 1; fi needs: - lint_m1 tags: [shell] No newline at end of file Loading
ci_cd/.gitlab-ci.yml +2 −1 Original line number Diff line number Diff line include: - local: 'ci_cd/labm1.yml' # Lab -1 - local: 'ci_cd/lab0.yml' # Lab 0 No newline at end of file
ci_cd/lab0.yml 0 → 100644 +46 −0 Original line number Diff line number Diff line stages: - LabZero ### Lab 0 prebuild_0: stage: LabZero script: - | if [ ! -f 'lab0.cpp' ]; then echo "ERROR - could not find file lab0.cpp"; exit 1; fi - git clone https://agile.bu.edu/gitlab/configs/ec327/lab-configs/current.git base tags: [c++-17] compile_0: stage: LabZero script: - echo "Compiling lab0.cpp" - g++ -c lab0.cpp needs: - prebuild_m1 tags: [c++-17] lint_m1: stage: LabMinusOne script: - echo "Static code check of lab-1.cpp" - cppcheck --enable=all --inconclusive --error-exitcode=1 lab-1.cpp allow_failure: false needs: - compile_m1 tags: [cppcheck] test_m1: stage: LabMinusOne script: - echo "Testing Lab -1"; - | if ! grep -q "$GITLAB_USER_LOGIN" lab-1.cpp; then echo "Could not find your WikiName $GITLAB_USER_LOGIN in file lab-1.cpp"; exit 1; fi needs: - lint_m1 tags: [shell] No newline at end of file