Commit 48052d92 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Update .gitlab-ci.yml

parent ec2ad6b9
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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]
@@ -19,7 +21,7 @@ compile_m1:
  script:
    - echo "Compiling lab-1.cpp"
    - g++ -c lab-1.cpp
  dependencies:
  needs:
    - prebuild_m1
  tags: [c++-17]

@@ -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]

@@ -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