Commit 300f92e6 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

bug fix

parent bd3c3369
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
prebuild_problem_1b:
  stage: prebuild
  script:
    - echo "=${CI_COMMIT_AUTHOR}"
    - STUDENT="$(echo "$CI_PROJECT_PATH" | sed -E 's#.*/HomeworkZero##')"
    - echo "Student = $STUDENT"
    - |
      # Check if source files exist
      if [ ! -f "IntegerP.cpp" ]; then
@@ -61,7 +58,8 @@ extra_1b:
    - make extra1b
    - score="$(./extra1b | tail -n 1 | tr -d '[:space:]')"
    - echo "Your score is $score"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=extra1b&name=${GITLAB_USER_LOGIN}&score=${score}"
    - STUDENT="$(echo "$CI_PROJECT_PATH" | sed -E 's#.*/HomeworkZero##')"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=extra1b&name=${STUDENT}&score=${score}"
  rules:
    - if: '$INTERNAL_TESTS == "1"' # skip when doing internal tests
      when: never
+2 −1
Original line number Diff line number Diff line
@@ -83,7 +83,8 @@ more_rationalp:
    - score="$(cat more1c.txt | tail -n 1 | tr -d '[:space:]')"
    - echo "$(cat more1c.txt)"
    - echo "Your score is $score"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw0_more1c&name=${CI_COMMIT_AUTHOR}&score=${score}" # log the score for easy grading
    - STUDENT="$(echo "$CI_PROJECT_PATH" | sed -E 's#.*/HomeworkZero##')"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw0_more1c&name=${STUDENT}&score=${score}" # log the score for easy grading
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem1c"'
  tags: [ c++-17 ]
 No newline at end of file