Loading .gitlab-ci.yml +19 −0 Original line number Diff line number Diff line stages: - build # section name of the CI pipeline - test # other section executed AFTER 'build' build_job: stage: build # section where to run the job Loading @@ -9,3 +10,21 @@ build_job: - echo "Building the application..." - python -m py_compile program.py - echo "Building complete." test_job_1: stage: test # section where to run the job tags: - git-run-ia2 # who is running the job script: - echo "Running test group 1 ..." - python test_program.py - echo "Testing complete." test_job_2: stage: test # section where to run the job tags: - git-run-ia2 # who is running the job script: - echo "Running more tests in group 2..." - sleep 5 - echo "Testing complete." No newline at end of file Loading
.gitlab-ci.yml +19 −0 Original line number Diff line number Diff line stages: - build # section name of the CI pipeline - test # other section executed AFTER 'build' build_job: stage: build # section where to run the job Loading @@ -9,3 +10,21 @@ build_job: - echo "Building the application..." - python -m py_compile program.py - echo "Building complete." test_job_1: stage: test # section where to run the job tags: - git-run-ia2 # who is running the job script: - echo "Running test group 1 ..." - python test_program.py - echo "Testing complete." test_job_2: stage: test # section where to run the job tags: - git-run-ia2 # who is running the job script: - echo "Running more tests in group 2..." - sleep 5 - echo "Testing complete." No newline at end of file