Merge gitlab configuration & refactor dependencies
This commit is contained in:
parent
890d2b1158
commit
db2bb54d1d
8 changed files with 190 additions and 76 deletions
|
|
@ -1,4 +1,5 @@
|
|||
stages:
|
||||
- build
|
||||
- test
|
||||
- release
|
||||
|
||||
|
|
@ -12,6 +13,43 @@ cache:
|
|||
- .cache/pip
|
||||
- .cache/poetry
|
||||
|
||||
include:
|
||||
- local: '/gitlab/test.yml'
|
||||
- local: '/gitlab/release.yml'
|
||||
development-build:
|
||||
stage: build
|
||||
image: python:3.11
|
||||
script:
|
||||
- make install-development
|
||||
- transip-listen --help
|
||||
only:
|
||||
- development
|
||||
|
||||
production-build:
|
||||
stage: build
|
||||
image: python:3.11
|
||||
script:
|
||||
- make install-prod
|
||||
- transip-listen --help
|
||||
only:
|
||||
- main
|
||||
|
||||
tests:
|
||||
stage: test
|
||||
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+%)/'
|
||||
image: python:3.11
|
||||
before_script:
|
||||
- pip install -r requirements/ci.txt
|
||||
script:
|
||||
- coverage run --module unittest
|
||||
- coverage report
|
||||
|
||||
release:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
script:
|
||||
- echo 'running release job'
|
||||
release:
|
||||
name: 'Release $CI_COMMIT_TAG'
|
||||
description: './CHANGELOG.md'
|
||||
tag_name: '$CI_COMMIT_TAG'
|
||||
ref: '$CI_COMMIT_TAG'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue