Commit 6e4f808d authored by Rayan Syed's avatar Rayan Syed
Browse files

updated pipeline

parent fc38cea1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ stages:
  - compile
  - test
  - extra
  - internal

include:
  - local: 'ci_cd/problem2a.yml'   # IntegerPP
+19 −0
Original line number Diff line number Diff line
@@ -72,8 +72,27 @@ extra_credit:
    - 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: '$INTERNAL_TESTS == "1"'
      when: never
    - if: '$CI_COMMIT_REF_NAME == "problem2a"'
  timeout: 2m
  # tags: [c++-17-light]
  tags: [c++-17]

more_integerpp:
  stage: internal
  needs:
    - job: compile_problem_2a
      artifacts: true
  script:
    - cd hw1/tests
    - make more2a
    - $(./more2a > more2a.txt)
    - score="$(cat more2a.txt | tail -n 1 | tr -d '[:space:]')"
    - echo "$(cat more2a.txt)"
    - echo "Your score is $score"
    - STUDENT="$(echo "$CI_PROJECT_PATH" | sed -E 's#.*/HomeworkOne##')"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw1_more2a&name=${STUDENT}&score=${score}" # log the score for easy grading
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem2a"'
  tags: [ c++-17 ]
+18 −0
Original line number Diff line number Diff line
@@ -45,3 +45,21 @@ exec_problem_2b:
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem2b"'
  tags: [c++-17]

more_binprime:
  stage: internal
  needs:
    - job: compile_problem_2b
      artifacts: true
  script:
    - cd hw1/tests
    - make more2b
    - $(./more2b > more2b.txt)
    - score="$(cat more2b.txt | tail -n 1 | tr -d '[:space:]')"
    - echo "$(cat more2b.txt)"
    - echo "Your score is $score"
    - STUDENT="$(echo "$CI_PROJECT_PATH" | sed -E 's#.*/HomeworkOne##')"
    - curl "https://agile.bu.edu/ec330_scripts/saveScores.pl?key=${MAGIC_KEY}&file=hw1_more2b&name=${STUDENT}&score=${score}" # log the score for easy grading
  rules:
    - if: '$CI_COMMIT_REF_NAME == "problem2b"'
  tags: [ c++-17 ]