Commit 3a5b5a11 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

added internal tests for problem 1

parent 92353fd8
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -51,3 +51,17 @@ test_problem_1:
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem1"'
  tags: [c++-17]

internal_testing_problem_1:
  stage: problem1
  script:
    - echo "Internal testing problem 1";
    - git clone https://trachten-gitlab:${INTERNAL_HW_TESTS}@agile.bu.edu/gitlab/ec327/ec327-staff/hw-tests/homework-two-internal.git
    - cp -f problem1.cpp problem1.h homework-two-internal/internal_tests/
    - cd homework-two-internal/internal_tests/
    - make internalTestProblem1
    - RESULT=$(./internalTestProblem1 | tail -n 1)
    - curl "https://agile.bu.edu/ec327_scripts/bestScores.pl?key=$MAGIC_KEY&file=MakeTotal&name=$GITLAB_USER_LOGIN&score=$RESULT"
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem1"'
  tags: [c++-17]
 No newline at end of file