Skip to content

Commit

Permalink
Fix Master
Browse files Browse the repository at this point in the history
  • Loading branch information
taliaga committed Mar 11, 2021
1 parent ac6a1b8 commit 7a11f3b
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
stages:
- prepare_pipeline
- build_images
- build_and_test
- from_source
- publish_images
- cleanup
- deploy
- check_deployment
- test_deployment
- fast_test
- full_test

prepare_pipeline:
stage: prepare_pipeline
script:
- /home/gitlab-runner/sarus-ops/update.sh

build_dependencies:
stage: build_images
Expand Down Expand Up @@ -157,11 +163,13 @@ deploy:
script:
- "echo PWD: ${PWD}"
- ARTIFACT=sarus-Release.tar.gz
- TARGET_MACHINE=${TARGET_MACHINE:-undefined}
- DEPLOYMENT_TYPE=${DEPLOYMENT_TYPE:-development}
- NAME=${CI_COMMIT_TAG:-${CI_COMMIT_BRANCH}}
- /home/gitlab-runner/sarus-ops/deploy_to_${DEPLOY_TARGET}.sh ${ARTIFACT} ${NAME} ${DEPLOYMENT_TYPE}
- /home/gitlab-runner/sarus-ops/deploy.sh ${ARTIFACT} ${TARGET_MACHINE} ${NAME} ${DEPLOYMENT_TYPE}

smoke_tests:
stage: check_deployment
fast_test:
stage: fast_test
only:
- master
- develop
Expand All @@ -170,17 +178,21 @@ smoke_tests:
- /^.*_smoke$/
script:
- "echo PWD: ${PWD}"
- TARGET_MACHINE=${TARGET_MACHINE:-undefined}
- NAME=${CI_COMMIT_TAG:-${CI_COMMIT_BRANCH}}
- /home/gitlab-runner/sarus-ops/request_smoke_test_on_${DEPLOY_TARGET}.sh ${NAME} ${DEPLOYMENT_TYPE}
- DEPLOYMENT_TYPE=${DEPLOYMENT_TYPE:-development}
- /home/gitlab-runner/sarus-ops/fast_test.sh ${TARGET_MACHINE} ${NAME} ${DEPLOYMENT_TYPE}

reframe:
stage: test_deployment
full_test:
stage: full_test
only:
- master
- develop
- tags
- /^.*_reframe$/
script:
- "echo PWD: ${PWD}"
- TARGET_MACHINE=${TARGET_MACHINE:-undefined}
- NAME=${CI_COMMIT_TAG:-${CI_COMMIT_BRANCH}}
- /home/gitlab-runner/sarus-ops/request_reframe_on_${DEPLOY_TARGET}.sh ${NAME} ${DEPLOYMENT_TYPE}
- DEPLOYMENT_TYPE=${DEPLOYMENT_TYPE:-development}
- /home/gitlab-runner/sarus-ops/full_test.sh ${TARGET_MACHINE} ${NAME} ${DEPLOYMENT_TYPE}

0 comments on commit 7a11f3b

Please sign in to comment.