Loading ci_cd/lab1.yml +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ test_lab_1: script: - echo "Testing Lab 1"; - git clone https://agile.bu.edu/gitlab/configs/ec327/lab-configs/current.git base_1 - cp lab0.cpp base_1/tests - cp lab1.cpp base_1/tests - cd base_1/tests - make lab1 dependencies: Loading ci_cd/labm1.yml +9 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ compile_lab_m1: script: - echo "Compiling lab-1.cpp" - g++ -c lab-1.cpp rules: - changes: - lab-1.cpp tags: [c++-17] lint_lab_m1: Loading @@ -25,6 +28,9 @@ lint_lab_m1: - echo "Static code check of lab-1.cpp" - cppcheck --enable=all --inconclusive --error-exitcode=1 lab-1.cpp allow_failure: false rules: - changes: - lab-1.cpp tags: [cppcheck] # don't run the test in the master branch Loading @@ -39,4 +45,7 @@ test_lab_m1: echo "Could not find your WikiName $GITLAB_USER_LOGIN in file lab-1.cpp"; exit 1; fi rules: - changes: - lab-1.cpp tags: [shell] No newline at end of file Loading
ci_cd/lab1.yml +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ test_lab_1: script: - echo "Testing Lab 1"; - git clone https://agile.bu.edu/gitlab/configs/ec327/lab-configs/current.git base_1 - cp lab0.cpp base_1/tests - cp lab1.cpp base_1/tests - cd base_1/tests - make lab1 dependencies: Loading
ci_cd/labm1.yml +9 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ compile_lab_m1: script: - echo "Compiling lab-1.cpp" - g++ -c lab-1.cpp rules: - changes: - lab-1.cpp tags: [c++-17] lint_lab_m1: Loading @@ -25,6 +28,9 @@ lint_lab_m1: - echo "Static code check of lab-1.cpp" - cppcheck --enable=all --inconclusive --error-exitcode=1 lab-1.cpp allow_failure: false rules: - changes: - lab-1.cpp tags: [cppcheck] # don't run the test in the master branch Loading @@ -39,4 +45,7 @@ test_lab_m1: echo "Could not find your WikiName $GITLAB_USER_LOGIN in file lab-1.cpp"; exit 1; fi rules: - changes: - lab-1.cpp tags: [shell] No newline at end of file