stages: - LabMinusOne - LabZero ### Lab -1 prebuild_m1: stage: LabMinusOne script: - | if [ ! -f lab-1.cpp ]; then echo "ERROR - could not find file lab-1.cpp."; exit 1; fi tags: [shell] compile_m1: stage: LabMinusOne script: - echo "Compiling lab-1.cpp" - g++ -c lab-1.cpp dependencies: - 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 dependencies: - compile_m1 tags: [cppcheck] test_m1: stage: LabMinusOne script: - echo "Testing Lab -1"; - | if ! grep -q "^$GITLAB_USER_LOGIN$" lap-1.cpp; then echo "Could not find your WikiName on its own line in file lab-1.cpp"; exit 1; fi dependencies: - lint_m1 tags: [shell]