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
Loading
Loading
Loading
Loading
Loading
+10 −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'

@@ -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"