Add woodpecker configuration
This commit is contained in:
parent
3f4c220eb1
commit
69b7667a53
3 changed files with 25 additions and 56 deletions
|
|
@ -1,56 +0,0 @@
|
|||
stages:
|
||||
- build
|
||||
- test
|
||||
- release
|
||||
|
||||
variables:
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
|
||||
cache:
|
||||
key: "$CI_COMMIT_REF_SLUG"
|
||||
paths:
|
||||
- .venv/
|
||||
- .cache/pip
|
||||
- .cache/poetry
|
||||
|
||||
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-production
|
||||
- transip-listen --help
|
||||
only:
|
||||
- main
|
||||
- tags
|
||||
|
||||
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'
|
||||
15
.woodpecker/build.yaml
Normal file
15
.woodpecker/build.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
when:
|
||||
- event: push
|
||||
|
||||
steps:
|
||||
- name: development build
|
||||
image: python:3.11
|
||||
commands:
|
||||
- make install-development
|
||||
- transip-listen --help
|
||||
|
||||
- name: production build
|
||||
image: python:3.11
|
||||
commands:
|
||||
- make install-production
|
||||
- transip-listen --help
|
||||
10
.woodpecker/tests.yaml
Normal file
10
.woodpecker/tests.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
when:
|
||||
- event: push
|
||||
|
||||
steps:
|
||||
- name: python tests
|
||||
image: python:3.11
|
||||
commands:
|
||||
- pip install --requirement requirements/ci.txt
|
||||
- coverage run --module unittest
|
||||
- coverage report
|
||||
Loading…
Add table
Add a link
Reference in a new issue