Commit 03e9a7e4 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

initial commit

parent 7cbc2e9a
Loading
Loading
Loading
Loading

ci_cd/.gitlab-ci.yml

0 → 100644
+68 −0
Original line number Diff line number Diff line
2c_basic:
  script:
    - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git
    - cp -f ImaginaryNumber.h finalexamtests/
    - cd finalexamtests
    - make basic_2c
    - ./basic_2c
    - echo "=== DONE ==="
  tags: [ c++-17 ]

2c_internal:
  script:
    - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git
    - cp -f ImaginaryNumber.h finalexamtests/
    - cd finalexamtests
    - make internal_2c
    - output=$(./internal_2c)
    - echo "=== $output ==="
    - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?file=final2c&name=$GITLAB_USER_NAME&score=$output"
  tags: [ c++-17 ]
  needs:
    - 2c_basic

2d_basic:
  script:
    - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git
    - cp -f Trinion.h finalexamtests/
    - cd finalexamtests
    - make basic_2d
    - ./basic_2d
    - echo "=== DONE ==="
  tags: [ c++-17 ]

2d_internal:
  script:
    - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git
    - cp -f Trinion.h finalexamtests/
    - cd finalexamtests
    - make internal_2d
    - output=$(./internal_2d)
    - echo "=== $output ==="
    - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?file=final2d&name=$GITLAB_USER_NAME&score=$output"
  tags: [ c++-17 ]
  needs:
    - 2d_basic

2e_basic:
  script:
    - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git
    - cp -f Trinion.h finalexamtests/
    - cd finalexamtests
    - make basic_2e
    - ./basic_2e
    - echo "=== DONE ==="
  tags: [ c++-17 ]

2e_internal:
  script:
    - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git
    - cp -f Trinion.h finalexamtests/
    - cd finalexamtests
    - make internal_2e
    - output=$(./internal_2e)
    - echo "=== $output ==="
    - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?file=final2d&name=$GITLAB_USER_NAME&score=$output"
  tags: [ c++-17 ]
  needs:
    - 2e_basic
 No newline at end of file