Loading .gitlab-ci.yml +7 −5 Original line number Diff line number Diff line Loading @@ -8,8 +8,10 @@ prebuild_m1: script: - ls -l . - | if [ ! -f lab-1.cpp ]; then echo "ERROR - could not find file lab-1.cpp."; if [ ! -f 'lab-1.cpp' ]; then echo "ERROR - could not find file lab-1.cpp"; echo -e 'lab-1.cpp'; echo -f 'lab-1.cpp'; exit 1; fi tags: [shell] Loading @@ -19,7 +21,7 @@ compile_m1: script: - echo "Compiling lab-1.cpp" - g++ -c lab-1.cpp dependencies: needs: - prebuild_m1 tags: [c++-17] Loading @@ -29,7 +31,7 @@ lint_m1: - echo "Static code check of lab-1.cpp" - cppcheck --enable=all --inconclusive --error-exitcode=1 lab-1.cpp allow_failure: false dependencies: needs: - compile_m1 tags: [cppcheck] Loading @@ -42,6 +44,6 @@ test_m1: echo "Could not find your WikiName $GITLAB_USER_LOGIN in file lab-1.cpp"; exit 1; fi dependencies: needs: - lint_m1 tags: [shell] No newline at end of file Loading
.gitlab-ci.yml +7 −5 Original line number Diff line number Diff line Loading @@ -8,8 +8,10 @@ prebuild_m1: script: - ls -l . - | if [ ! -f lab-1.cpp ]; then echo "ERROR - could not find file lab-1.cpp."; if [ ! -f 'lab-1.cpp' ]; then echo "ERROR - could not find file lab-1.cpp"; echo -e 'lab-1.cpp'; echo -f 'lab-1.cpp'; exit 1; fi tags: [shell] Loading @@ -19,7 +21,7 @@ compile_m1: script: - echo "Compiling lab-1.cpp" - g++ -c lab-1.cpp dependencies: needs: - prebuild_m1 tags: [c++-17] Loading @@ -29,7 +31,7 @@ lint_m1: - echo "Static code check of lab-1.cpp" - cppcheck --enable=all --inconclusive --error-exitcode=1 lab-1.cpp allow_failure: false dependencies: needs: - compile_m1 tags: [cppcheck] Loading @@ -42,6 +44,6 @@ test_m1: echo "Could not find your WikiName $GITLAB_USER_LOGIN in file lab-1.cpp"; exit 1; fi dependencies: needs: - lint_m1 tags: [shell] No newline at end of file