feature: install ci/cd

This commit is contained in:
Nicolas Mérigot
2019-01-10 18:00:42 +01:00
parent e6dcbbf332
commit b33249d29c
4 changed files with 52 additions and 13 deletions

30
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,30 @@
---
image: python:3.6
stages:
- test
- release
test:
stage: test
script:
- 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