Loading ci_cd/problem1c.yml +15 −3 Original line number Diff line number Diff line prebuild_problem_1c: stage: prebuild script: - ls -a - | # Check if source files exist if [ ! -f "IntegerP.cpp" ]; then Loading @@ -20,14 +19,27 @@ prebuild_problem_1c: - if: '$CI_COMMIT_REF_NAME == "problem1c"' tags: [c++-17] compile_problem_1b: stage: compile needs: - job: prebuild_problem_1c artifacts: true script: - cp IntegerP.cpp RationalP.cpp hw0/tests/ - cd hw0/tests - make problem1c artifacts: paths: - hw0/ rules: - if: '$CI_COMMIT_REF_NAME == "problem1c"' tags: [c++-17] test_problem_1c: stage: test dependencies: - prebuild_problem_1c script: - cp IntegerP.cpp hw0/tests - cp RationalP.cpp hw0/tests - cd hw0/tests - make problem1c - ./problem1c Loading Loading
ci_cd/problem1c.yml +15 −3 Original line number Diff line number Diff line prebuild_problem_1c: stage: prebuild script: - ls -a - | # Check if source files exist if [ ! -f "IntegerP.cpp" ]; then Loading @@ -20,14 +19,27 @@ prebuild_problem_1c: - if: '$CI_COMMIT_REF_NAME == "problem1c"' tags: [c++-17] compile_problem_1b: stage: compile needs: - job: prebuild_problem_1c artifacts: true script: - cp IntegerP.cpp RationalP.cpp hw0/tests/ - cd hw0/tests - make problem1c artifacts: paths: - hw0/ rules: - if: '$CI_COMMIT_REF_NAME == "problem1c"' tags: [c++-17] test_problem_1c: stage: test dependencies: - prebuild_problem_1c script: - cp IntegerP.cpp hw0/tests - cp RationalP.cpp hw0/tests - cd hw0/tests - make problem1c - ./problem1c Loading