From 3bd0258d46cfd64b8f931e3ade31cbd2b045658c Mon Sep 17 00:00:00 2001 From: plup <plup@plup.io> Date: Wed, 9 Jan 2019 01:19:49 +0100 Subject: [PATCH] change: added release in CI/CD --- .gitlab-ci.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2689ba25..0a48d3d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,11 +2,29 @@ image: python:3 stages: - - hello + - test + - release -say_hello: - stage: hello +test: + stage: test script: - - echo 'Hello world!' + - echo 'Make your tests here !' + except: + - master + tags: + - sib + +publish: + stage: release + before_script: + - git config user.name "${GITLAB_USER_NAME}" + - git config user.email "${GITLAB_USER_EMAIL}" + - git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@git.happy-dev.fr/${CI_PROJECT_PATH}.git" + - pip install git+https://github.com/plup/python-semantic-release + - pip install sib-commit-parser + script: + - semantic-release publish + only: + - master tags: - sib -- GitLab