Commit a139bac0 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

add IntegerP.h and IntegerPP.h

parent 2347b15f
Loading
Loading
Loading
Loading
+2 −29
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ exec_problem_2a:
      artifacts: true
  script:
    - cd hw1/tests
    - ls-lh
    - cat IntegerPP.h
    - ./problem2a
  artifacts:
    paths:
@@ -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