Loading ci_cd/problem1.yml +14 −0 Original line number Diff line number Diff line Loading @@ -51,3 +51,17 @@ test_problem_1: rules: - if: '$CI_COMMIT_REF_NAME == "problem1"' tags: [c++-17] internal_testing_problem_1: stage: problem1 script: - echo "Internal testing problem 1"; - git clone https://trachten-gitlab:${INTERNAL_HW_TESTS}@agile.bu.edu/gitlab/ec327/ec327-staff/hw-tests/homework-two-internal.git - cp -f problem1.cpp problem1.h homework-two-internal/internal_tests/ - cd homework-two-internal/internal_tests/ - make internalTestProblem1 - RESULT=$(./internalTestProblem1 | tail -n 1) - curl "https://agile.bu.edu/ec327_scripts/bestScores.pl?key=$MAGIC_KEY&file=MakeTotal&name=$GITLAB_USER_LOGIN&score=$RESULT" rules: - if: '$CI_COMMIT_REF_NAME == "problem1"' tags: [c++-17] No newline at end of file Loading
ci_cd/problem1.yml +14 −0 Original line number Diff line number Diff line Loading @@ -51,3 +51,17 @@ test_problem_1: rules: - if: '$CI_COMMIT_REF_NAME == "problem1"' tags: [c++-17] internal_testing_problem_1: stage: problem1 script: - echo "Internal testing problem 1"; - git clone https://trachten-gitlab:${INTERNAL_HW_TESTS}@agile.bu.edu/gitlab/ec327/ec327-staff/hw-tests/homework-two-internal.git - cp -f problem1.cpp problem1.h homework-two-internal/internal_tests/ - cd homework-two-internal/internal_tests/ - make internalTestProblem1 - RESULT=$(./internalTestProblem1 | tail -n 1) - curl "https://agile.bu.edu/ec327_scripts/bestScores.pl?key=$MAGIC_KEY&file=MakeTotal&name=$GITLAB_USER_LOGIN&score=$RESULT" rules: - if: '$CI_COMMIT_REF_NAME == "problem1"' tags: [c++-17] No newline at end of file