Commit 38b7672a authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

bug fix

parent a6f04b72
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -60,10 +60,10 @@ extra_1b:
    - 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}"
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem1b"'
      when: on_success
    - if: '$INTERNAL_TESTS == "1"' # skip when doing internal tests
      when: never
    - if: '$CI_COMMIT_REF_NAME == "problem1b"'
      when: on_success
    - when: never
  tags: [ c++-17 ]

@@ -75,7 +75,10 @@ more_integerp:
  script:
    - cd hw0/tests
    - make more1b
    - score="$(./more1b | tail -n 1 | tr -d '[:space:]')"
    - $(./more1b > more1b.txt)
    - score="$(cat more1b.txt | tail -n 1 | tr -d '[:space:]')"
    - echo "$more1b"
    - echo "Your score is $score"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw0_more1b&name=${GITLAB_USER_LOGIN}&score=${score}" # log the score for easy grading
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem1b"'
+6 −3
Original line number Diff line number Diff line
@@ -64,10 +64,10 @@ extra_1c:
    - echo "Your score is $score"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=extra1c&name=${GITLAB_USER_LOGIN}&score=${score}"
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem1c"'
      when: on_success
    - if: '$INTERNAL_TESTS == "1"' # skip when doing internal tests
      when: never
    - if: '$CI_COMMIT_REF_NAME == "problem1c"'
      when: on_success
    - when: never
  tags: [c++-17]

@@ -79,7 +79,10 @@ more_rationalp:
  script:
    - cd hw0/tests
    - make more1c
    - score="$(./more1c | tail -n 1 | tr -d '[:space:]')"
    - $(./more1b > more1c.txt)
    - score="$(cat more1c.txt | tail -n 1 | tr -d '[:space:]')"
    - echo "$more1c"
    - echo "Your score is $score"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw0_more1c&name=${GITLAB_USER_LOGIN}&score=${score}" # log the score for easy grading
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem1c"'