Loading ci_cd/problem0.yml +11 −63 Original line number Diff line number Diff line Loading @@ -7,76 +7,24 @@ prebuild_problem0: echo "IntegerP.cpp does not exist"; exit 1; fi - git clone https://agile.bu.edu/gitlab/configs/ec327/hw-configs/hw4.git base_4 - git clone https://agile.bu.edu/gitlab/configs/ec330/homeworks/homeworkzero.git hw0 artifacts: paths: - base_4/ - hw0/ rules: - when: always tags: [c++-17] test_problem_1a: stage: problem1a dependencies: - prebuild_problem1 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1a - ./problem1a rules: - if: '$CI_COMMIT_REF_NAME == "1a"' tags: [c++-17] test_problem_1b: stage: problem1b dependencies: - prebuild_problem1 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1b - ./problem1b rules: - if: '$CI_COMMIT_REF_NAME == "1b"' tags: [c++-17] test_problem_1c: stage: problem1c dependencies: - prebuild_problem1 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1c - ./problem1c rules: - if: '$CI_COMMIT_REF_NAME == "1c"' tags: [c++-17] test_problem_1d: stage: problem1d dependencies: - prebuild_problem1 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1d - ./problem1d rules: - if: '$CI_COMMIT_REF_NAME == "1d"' tags: [c++-17] test_problem_1e: stage: problem1e test_problem_0: stage: problem0 dependencies: - prebuild_problem1 - prebuild_problem0 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1e - ./problem1e - cp IntegerP.cpp hw0/tests - cd hw0/tests - make problem0 - ./problem0 rules: - if: '$CI_COMMIT_REF_NAME == "1e"' - if: '$CI_COMMIT_REF_NAME == "problem0"' tags: [c++-17] No newline at end of file ci_cd/problem1.yml 0 → 100644 +35 −0 Original line number Diff line number Diff line prebuild_problem1: stage: problem1 script: - | # Check if source files exist if [ ! -f "IntegerP.cpp" ]; then echo "IntegerP.cpp does not exist"; exit 1; fi if [ ! -f "RationalP.cpp" ]; then echo "RationalP.cpp does not exist"; exit 1; fi - git clone https://agile.bu.edu/gitlab/configs/ec330/homeworks/homeworkzero.git hw0 artifacts: paths: - hw0/ rules: - when: always tags: [c++-17] test_problem_1: stage: problem1 dependencies: - prebuild_problem1 script: - cp IntegerP.cpp hw0/tests - cp RationalP.cpp hw0/tests - cd hw0/tests - make problem1 - ./problem1 rules: - if: '$CI_COMMIT_REF_NAME == "problem1"' tags: [c++-17] No newline at end of file Loading
ci_cd/problem0.yml +11 −63 Original line number Diff line number Diff line Loading @@ -7,76 +7,24 @@ prebuild_problem0: echo "IntegerP.cpp does not exist"; exit 1; fi - git clone https://agile.bu.edu/gitlab/configs/ec327/hw-configs/hw4.git base_4 - git clone https://agile.bu.edu/gitlab/configs/ec330/homeworks/homeworkzero.git hw0 artifacts: paths: - base_4/ - hw0/ rules: - when: always tags: [c++-17] test_problem_1a: stage: problem1a dependencies: - prebuild_problem1 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1a - ./problem1a rules: - if: '$CI_COMMIT_REF_NAME == "1a"' tags: [c++-17] test_problem_1b: stage: problem1b dependencies: - prebuild_problem1 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1b - ./problem1b rules: - if: '$CI_COMMIT_REF_NAME == "1b"' tags: [c++-17] test_problem_1c: stage: problem1c dependencies: - prebuild_problem1 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1c - ./problem1c rules: - if: '$CI_COMMIT_REF_NAME == "1c"' tags: [c++-17] test_problem_1d: stage: problem1d dependencies: - prebuild_problem1 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1d - ./problem1d rules: - if: '$CI_COMMIT_REF_NAME == "1d"' tags: [c++-17] test_problem_1e: stage: problem1e test_problem_0: stage: problem0 dependencies: - prebuild_problem1 - prebuild_problem0 script: - cp GaussianInteger.cpp GaussianInteger.h base_4/tests - cd base_4/tests - make problem1e - ./problem1e - cp IntegerP.cpp hw0/tests - cd hw0/tests - make problem0 - ./problem0 rules: - if: '$CI_COMMIT_REF_NAME == "1e"' - if: '$CI_COMMIT_REF_NAME == "problem0"' tags: [c++-17] No newline at end of file
ci_cd/problem1.yml 0 → 100644 +35 −0 Original line number Diff line number Diff line prebuild_problem1: stage: problem1 script: - | # Check if source files exist if [ ! -f "IntegerP.cpp" ]; then echo "IntegerP.cpp does not exist"; exit 1; fi if [ ! -f "RationalP.cpp" ]; then echo "RationalP.cpp does not exist"; exit 1; fi - git clone https://agile.bu.edu/gitlab/configs/ec330/homeworks/homeworkzero.git hw0 artifacts: paths: - hw0/ rules: - when: always tags: [c++-17] test_problem_1: stage: problem1 dependencies: - prebuild_problem1 script: - cp IntegerP.cpp hw0/tests - cp RationalP.cpp hw0/tests - cd hw0/tests - make problem1 - ./problem1 rules: - if: '$CI_COMMIT_REF_NAME == "problem1"' tags: [c++-17] No newline at end of file