Loading ci_cd/problem3.yml +4 −2 Original line number Diff line number Diff line Loading @@ -63,14 +63,16 @@ benchmark: timeout 300s stdbuf -oL ./extra3 > extra3.out STATUS=$? set -e context="$(tail -n 10 extra3.out)" echo "$context" if [ "$STATUS" -eq 255 ]; then echo "one of the sorts was wrong - job failed" exit 1 fi context="$(tail -n 10 extra3.out)" score="$(tail -n 1 extra3.out | tr -d '[:space:]')" - echo "$context" - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw3bench&name=${GITLAB_USER_LOGIN}&score=${score}" rules: - if: '$CI_COMMIT_REF_NAME == "problem3"' Loading Loading
ci_cd/problem3.yml +4 −2 Original line number Diff line number Diff line Loading @@ -63,14 +63,16 @@ benchmark: timeout 300s stdbuf -oL ./extra3 > extra3.out STATUS=$? set -e context="$(tail -n 10 extra3.out)" echo "$context" if [ "$STATUS" -eq 255 ]; then echo "one of the sorts was wrong - job failed" exit 1 fi context="$(tail -n 10 extra3.out)" score="$(tail -n 1 extra3.out | tr -d '[:space:]')" - echo "$context" - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw3bench&name=${GITLAB_USER_LOGIN}&score=${score}" rules: - if: '$CI_COMMIT_REF_NAME == "problem3"' Loading