diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef04416a453111262294f4c1d85026bac986c821..7383cf8b87eebe8fddd44fc03ea0d039fdcd4914 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,9 @@ +stages: + - license + - build_and_test + - deploy + - final + ############ YAML ANCHORS ############ .preliminaries_template: &preliminaries_definition ## Install ssh-agent if not already installed, it is required by Docker. @@ -24,7 +30,8 @@ - cd $CI_PROJECT_DIR # configure git - - export CI_NEW_BRANCH=ci_processing$CI_COMMIT_SHORT_SHA + - export CI_NEW_BRANCH=ci_processing$RANDOM + - echo creating new temporary branch... $CI_NEW_BRANCH - git config --global user.email "${CI_EMAIL}" - git config --global user.name "${CI_USERNAME}" - git checkout -b $CI_NEW_BRANCH # temporary branch @@ -67,12 +74,7 @@ - ../bin/hello_wolf_autoconf - make install -stages: - - license - - build_and_test - - deploy - - final - +############ LICENSE HEADERS ############ license_header: stage: license image: labrobotica/wolf_deps:16.04 @@ -81,6 +83,7 @@ license_header: script: - *license_header_definition +############ UBUNTU 16.04 TESTS ############ build_and_test:xenial: stage: build_and_test image: labrobotica/wolf_deps:16.04 @@ -89,6 +92,7 @@ build_and_test:xenial: script: - *build_and_test_definition +############ UBUNTU 18.04 TESTS ############ build_and_test:bionic: stage: build_and_test image: labrobotica/wolf_deps:18.04 @@ -97,6 +101,7 @@ build_and_test:bionic: script: - *build_and_test_definition +############ DEPLOY PLUGINS ############ deploy_imu: stage: deploy variables: @@ -145,7 +150,8 @@ deploy_bodydynamics: project: mobile_robotics/wolf_projects/wolf_lib/plugins/bodydynamics strategy: depend +############ WAIT FOR PLUGINS ############ final_all: stage: final script: - - echo "ALL PLUGINS PIPELINES SUCCEED!!!" \ No newline at end of file + - echo "ALL PLUGINS PIPELINES SUCCEED!!!"