diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b70c31dc8538c134b56fdfb1f51cc8b703295508..fc46465bfad39eb8d50255a28d676377e43b91b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,29 +2,31 @@ stages: # List of stages for jobs, and their order of execution - install - test +############ YAML ANCHORS ############ +.script_install_template: &script_install_definition + - apt-get update -y + - apt-get install expect -y + - apt-get install lbs-core -y + - ./auto_script_wolf + + installation-test-xenial: # This job runs in the build stage, which runs first. stage: install image: ubuntu:16.04 script: - - apt-get update -y - - apt-get install expect -y - - ./auto_script_wolf + - *script_install_definition installation-test-bionic: # This job runs in the build stage, which runs first. stage: install image: ubuntu:18.04 script: - - apt-get update -y - - apt-get install expect -y - - ./auto_script_wolf + - *script_install_definition installation-test-focal: # This job runs in the build stage, which runs first. stage: install image: ubuntu:20.04 script: - - apt-get update -y - - apt-get install expect -y - - ./auto_script_wolf + - *script_install_definition lint-test-job: # This job also runs in the test stage. stage: test # It can run at the same time as unit-test-job (in parallel).