Loading ci_cd/.gitlab-ci.yml +18 −3 Original line number Diff line number Diff line 2c_basic: script: - | if [ "$CI_COMMIT_BRANCH" != "master" ]; then echo "Error: Please push only to the master branch." exit 1 fi - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git - cp -f ImaginaryNumber.h finalexamtests/ - cd finalexamtests Loading @@ -16,13 +21,18 @@ - 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" - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?key=$MAGIC_KEY&file=final2c&name=$GITLAB_USER_NAME&score=$output" tags: [ c++-17 ] needs: - 2c_basic 2d_basic: script: - | if [ "$CI_COMMIT_BRANCH" != "master" ]; then echo "Error: Please push only to the master branch." exit 1 fi - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git - cp -f Trinion.h finalexamtests/ - cd finalexamtests Loading @@ -39,13 +49,18 @@ - 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" - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?key=$MAGIC_KEY&file=final2d&name=$GITLAB_USER_NAME&score=$output" tags: [ c++-17 ] needs: - 2d_basic 2e_basic: script: - | if [ "$CI_COMMIT_BRANCH" != "master" ]; then echo "Error: Please push only to the master branch." exit 1 fi - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git - cp -f Trinion.h finalexamtests/ - cd finalexamtests Loading @@ -62,7 +77,7 @@ - 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" - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?key=$MAGIC_KEY&file=final2d&name=$GITLAB_USER_NAME&score=$output" tags: [ c++-17 ] needs: - 2e_basic No newline at end of file Loading
ci_cd/.gitlab-ci.yml +18 −3 Original line number Diff line number Diff line 2c_basic: script: - | if [ "$CI_COMMIT_BRANCH" != "master" ]; then echo "Error: Please push only to the master branch." exit 1 fi - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git - cp -f ImaginaryNumber.h finalexamtests/ - cd finalexamtests Loading @@ -16,13 +21,18 @@ - 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" - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?key=$MAGIC_KEY&file=final2c&name=$GITLAB_USER_NAME&score=$output" tags: [ c++-17 ] needs: - 2c_basic 2d_basic: script: - | if [ "$CI_COMMIT_BRANCH" != "master" ]; then echo "Error: Please push only to the master branch." exit 1 fi - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git - cp -f Trinion.h finalexamtests/ - cd finalexamtests Loading @@ -39,13 +49,18 @@ - 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" - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?key=$MAGIC_KEY&file=final2d&name=$GITLAB_USER_NAME&score=$output" tags: [ c++-17 ] needs: - 2d_basic 2e_basic: script: - | if [ "$CI_COMMIT_BRANCH" != "master" ]; then echo "Error: Please push only to the master branch." exit 1 fi - git clone https://trachten-gitlab:$INTERNAL_TESTS@agile.bu.edu/gitlab/ec327/ec327-staff/finalexamtests.git - cp -f Trinion.h finalexamtests/ - cd finalexamtests Loading @@ -62,7 +77,7 @@ - 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" - curl "https://agile.bu.edu/ec327_scripts/saveScores.pl?key=$MAGIC_KEY&file=final2d&name=$GITLAB_USER_NAME&score=$output" tags: [ c++-17 ] needs: - 2e_basic No newline at end of file