Skip to content
Snippets Groups Projects
Forked from Configs / EC327 / Labs / Current
212 commits behind the upstream repository.
Code owners
lab0.yml 936 B
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]