Loading ci_cd/problem2a.yml +2 −29 Original line number Diff line number Diff line Loading @@ -38,6 +38,8 @@ exec_problem_2a: artifacts: true script: - cd hw1/tests - ls-lh - cat IntegerPP.h - ./problem2a artifacts: paths: Loading @@ -46,33 +48,4 @@ exec_problem_2a: - 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 - cd hw1_ec - make extra - set -o pipefail - | set +e timeout 60s stdbuf -oL ./extra | tee extra.out STATUS=${PIPESTATUS[0]} set -e if [ "$STATUS" -eq 255 ]; then echo "computed result incorrect - job failed" exit 1 fi score="$(tail -n 1 extra.out | 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"' timeout: 2m # tags: [c++-17-light] tags: [c++-17] No newline at end of file Loading
ci_cd/problem2a.yml +2 −29 Original line number Diff line number Diff line Loading @@ -38,6 +38,8 @@ exec_problem_2a: artifacts: true script: - cd hw1/tests - ls-lh - cat IntegerPP.h - ./problem2a artifacts: paths: Loading @@ -46,33 +48,4 @@ exec_problem_2a: - 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 - cd hw1_ec - make extra - set -o pipefail - | set +e timeout 60s stdbuf -oL ./extra | tee extra.out STATUS=${PIPESTATUS[0]} set -e if [ "$STATUS" -eq 255 ]; then echo "computed result incorrect - job failed" exit 1 fi score="$(tail -n 1 extra.out | 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"' timeout: 2m # tags: [c++-17-light] tags: [c++-17] No newline at end of file