Commit 7717a42a authored by James Knee's avatar James Knee
Browse files

removed internal/extra credit pipeline

commented out internal and extra credit tests since could not get token to work
parent 151b62cb
Loading
Loading
Loading
Loading
+18 −18
Original line number Diff line number Diff line
@@ -51,24 +51,24 @@ test_problem_0:
    - if: '$CI_COMMIT_REF_NAME == "problem0"'
  tags: [c++-17]

internal_testing_problem_0:
  stage: problem0
  script:
    - echo "Internal testing problem 0";
    # Clone using INTERNAL_HW_TESTS environment variable securely
    - git clone https://trachten-gitlab:${INTERNAL_HW_TESTS}@agile.bu.edu/gitlab/ec327/ec327-staff/hw-tests/homework-two-internal.git
    - cp -f problem0.cpp homework-two-internal/internal_tests/
    - cd homework-two-internal/internal_tests/
    - make internalTestProblem0
    - ./internalTestProblem0 > /dev/null 2>&1
    - RESULT=$(cat output.txt | tail -n 1)
    - curl "https://agile.bu.edu/ec327_scripts/bestScores.pl?key=$MAGIC_KEY&name=$GITLAB_USER_LOGIN&score=$RESULT"
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem0"'
  after_script:
    - cat homework-two-internal/internal_tests/output.txt
  tags: [c++-17]
  timeout: 10m
# internal_testing_problem_0:
#   stage: problem0
#   script:
#     - echo "Internal testing problem 0";
#     # Clone using INTERNAL_HW_TESTS environment variable securely
#     - git clone https://trachten-gitlab:${INTERNAL_HW_TESTS}@agile.bu.edu/gitlab/ec327/ec327-staff/hw-tests/homework-two-internal.git
#     - cp -f problem0.cpp homework-two-internal/internal_tests/
#     - cd homework-two-internal/internal_tests/
#     - make internalTestProblem0
#     - ./internalTestProblem0 > /dev/null 2>&1
#     - RESULT=$(cat output.txt | tail -n 1)
#     - curl "https://agile.bu.edu/ec327_scripts/bestScores.pl?key=$MAGIC_KEY&name=$GITLAB_USER_LOGIN&score=$RESULT"
#   rules:
#     - if: '$CI_COMMIT_REF_NAME == "problem0"'
#   after_script:
#     - cat homework-two-internal/internal_tests/output.txt
#   tags: [c++-17]
#   timeout: 10m

HW1_Problem0_TestCase:
  stage: problem0
+18 −18
Original line number Diff line number Diff line
@@ -52,24 +52,24 @@ test_problem_1:
    - if: '$CI_COMMIT_REF_NAME == "problem1"'
  tags: [c++-17]

extra_credit_problem_1:
  stage: problem1
  script:
    - echo "Internal testing problem 1";
    # Use INTERNAL_HW_TESTS environment variable securely in the clone command
    - 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
    - ./internalTestProblem1 > /dev/null 2>&1
    - RESULT=$(cat output.txt | 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"'
  after_script:
    - cat homework-two-internal/internal_tests/output.txt
  tags: [c++-17]
  timeout: 15m
# extra_credit_problem_1:
#   stage: problem1
#   script:
#     - echo "Internal testing problem 1";
#     # Use INTERNAL_HW_TESTS environment variable securely in the clone command
#     - 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
#     - ./internalTestProblem1 > /dev/null 2>&1
#     - RESULT=$(cat output.txt | 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"'
#   after_script:
#     - cat homework-two-internal/internal_tests/output.txt
#   tags: [c++-17]
#   timeout: 15m

HW1_Problem1_TestCase:
  stage: problem1