Commit 69535f89 authored by Patrizia Barria's avatar Patrizia Barria
Browse files

Update .gitlab-ci.yml file

parent 84e58e46
Loading
Loading
Loading
Loading
Loading
+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'

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