Skip to content
Snippets Groups Projects
Commit e86d3ff1 authored by Daniele Tavagnacco's avatar Daniele Tavagnacco
Browse files

Update .gitlab-ci.yml with deploy always job test 2 real

parent f88e7e83
No related branches found
No related tags found
No related merge requests found
Pipeline #26589 failed
stages:
- build # section name of the CI pipeline
- run
- test # other section executed AFTER 'build'
- deploy # other section AFTER 'build'
......@@ -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:
......@@ -23,6 +31,7 @@ test_job_1:
- echo "Running test group 1 ..."
- python test_program.py
- echo "Testing complete."
allow_failure: true
test_job_2:
stage: test # section where to run the job
......@@ -30,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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment