Commit 755945b9 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

fixing trigger for internal testing

parent 5c6980c4
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -78,11 +78,9 @@ test_lab_0:
internal_tests_lab_0:
  stage: tests
  script:
    - echo "$DUMMY"
    - echo "$DUMMY2"
    - git clone https://trachten-gitlab:$INTERNAL_LAB_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/lab-tests/lab-0-tests.git
    - cp -f lab0.cpp lab-0-tests/internal_tests/
    - cd lab-0-tests/internal_tests
    - git clone https://trachten-gitlab:$INTERNAL_LAB_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/lab-tests.git
    - cp -f lab0.cpp lab-tests/internal_tests/
    - cd lab-tests/internal_tests
    - make lab0
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
+5 −8
Original line number Diff line number Diff line
@@ -78,15 +78,12 @@ test_lab_1:
internal_tests_lab_1:
  stage: tests
  script:
    - |
      curl -X POST \
        --data "token=$TRIGGER_TOKEN" \
        --data "ref=master" \
        --data "variables[STUDENT]=$GITLAB_USER_LOGIN" \
        --data-urlencode "description=$GITLAB_USER_LOGIN - Lab 1 internal tests" \
        https://agile.bu.edu/gitlab/api/v4/projects/1519/trigger/pipeline
    - git clone https://trachten-gitlab:$INTERNAL_LAB_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/lab-tests.git
    - cp -f lab1.cpp lab-tests/internal_tests/
    - cd lab-tests/internal_tests
    - make lab1
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
      changes:
        - "lab1.cpp"
  tags: [curl]
  tags: [ c++-17 ]