Loading .gitlab-ci.yml +9 −1 Original line number Diff line number Diff line stages: - build # section name of the CI pipeline - run - test # other section executed AFTER 'build' - deploy # other section AFTER 'build' Loading @@ -15,6 +16,13 @@ build_job: - python -m py_compile program.py - echo "Building complete." run_job: stage: run # section where to run the job tags: - git-run-ia2 # who is running the job script: - python program.py test_job_1: stage: test # section where to run the job tags: Loading @@ -31,7 +39,7 @@ test_job_2: - git-run-ia2 # who is running the job script: - echo "Running more tests in group 2..." - sleep 5 - cat test_file.txt - echo "Testing complete." needs: [test_job_1] # mark this step to be executed AFTER "test_job_1" Loading Loading
.gitlab-ci.yml +9 −1 Original line number Diff line number Diff line stages: - build # section name of the CI pipeline - run - test # other section executed AFTER 'build' - deploy # other section AFTER 'build' Loading @@ -15,6 +16,13 @@ build_job: - python -m py_compile program.py - echo "Building complete." run_job: stage: run # section where to run the job tags: - git-run-ia2 # who is running the job script: - python program.py test_job_1: stage: test # section where to run the job tags: Loading @@ -31,7 +39,7 @@ test_job_2: - git-run-ia2 # who is running the job script: - echo "Running more tests in group 2..." - sleep 5 - cat test_file.txt - echo "Testing complete." needs: [test_job_1] # mark this step to be executed AFTER "test_job_1" Loading