Loading ci_cd/.gitlab-ci.yml +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ stages: - prebuild - compile - test - extra include: - local: 'ci_cd/problem2a.yml' # IntegerPP Loading ci_cd/problem2a.yml +18 −0 Original line number Diff line number Diff line Loading @@ -45,3 +45,21 @@ exec_problem_2a: rules: - if: '$CI_COMMIT_REF_NAME == "problem2a"' tags: [c++-17] extra_credit: stage: extra needs: - job: compile_problem_2a artifacts: true script: - git clone https://trachten-gitlab:${HW_INTERNAL}@agile.bu.edu/gitlab/ec330/ec330_staff/homeworks_internal/hw1_ec.git hw1_ec - cp IntegerP.cpp IntegerPP.cpp hw1_ec/tests/ - cd hw1_ec/tests - make extra - ./extra - score="$(./extra1c | tail -n 1 | tr -d '[:space:]')" - echo "Your score is $score" - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw1extra&name=${GITLAB_USER_LOGIN}&score=${score}" rules: - if: '$CI_COMMIT_REF_NAME == "problem2a"' tags: [c++-17-light] No newline at end of file Loading
ci_cd/.gitlab-ci.yml +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ stages: - prebuild - compile - test - extra include: - local: 'ci_cd/problem2a.yml' # IntegerPP Loading
ci_cd/problem2a.yml +18 −0 Original line number Diff line number Diff line Loading @@ -45,3 +45,21 @@ exec_problem_2a: rules: - if: '$CI_COMMIT_REF_NAME == "problem2a"' tags: [c++-17] extra_credit: stage: extra needs: - job: compile_problem_2a artifacts: true script: - git clone https://trachten-gitlab:${HW_INTERNAL}@agile.bu.edu/gitlab/ec330/ec330_staff/homeworks_internal/hw1_ec.git hw1_ec - cp IntegerP.cpp IntegerPP.cpp hw1_ec/tests/ - cd hw1_ec/tests - make extra - ./extra - score="$(./extra1c | tail -n 1 | tr -d '[:space:]')" - echo "Your score is $score" - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw1extra&name=${GITLAB_USER_LOGIN}&score=${score}" rules: - if: '$CI_COMMIT_REF_NAME == "problem2a"' tags: [c++-17-light] No newline at end of file