diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index fb64e52..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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' diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..44eeb46 --- /dev/null +++ b/.woodpecker/build.yaml @@ -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 diff --git a/.woodpecker/tests.yaml b/.woodpecker/tests.yaml new file mode 100644 index 0000000..8250f12 --- /dev/null +++ b/.woodpecker/tests.yaml @@ -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