Commit b4c2f607 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

fixed up testing

parent e2826a70
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
stages:
  - LabZero

.only_run_if_lab0_available: &common_rules
  rules:
    - exists:
        - lab0.cpp

### Lab 0
prebuild_0:
  stage: LabZero
  script:
    - git clone https://agile.bu.edu/gitlab/configs/ec327/lab-configs/current.git base
  when: on_success # only runs if the previous stage succeeds
  rules:
    - exists:
        - lab0.cpp
  artifacts:
    paths:
      - base
      - lab0.cpp
  <<: *common_rules
  tags: [c++-17]

compile_0:
@@ -25,6 +28,7 @@ compile_0:
    paths:
      - base
      - lab0.*
  <<: *common_rules
  tags: [c++-17]

lint_0:
@@ -39,6 +43,7 @@ lint_0:
    paths:
      - base
      - lab0.*
  <<: *common_rules
  tags: [cppcheck]

test_m1:
@@ -52,4 +57,5 @@ test_m1:
    - ./a.out
  needs:
    - lint_0
  <<: *common_rules
  tags: [shell]
 No newline at end of file