mirror of
https://github.com/KevinMidboe/delugeClient.git
synced 2025-10-29 12:00:13 +00:00
62 lines
1008 B
YAML
62 lines
1008 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Build and test amd64
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Build source
|
|
image: python:3.10
|
|
commands:
|
|
- make build
|
|
|
|
- name: Install
|
|
image: python:3.10
|
|
commands:
|
|
- make dist
|
|
- pip3 install pipenv
|
|
- pipenv install
|
|
- pipenv sync
|
|
- pipenv install dist/delugeClient_kevin-0.3.1-py3-none-any.whl
|
|
# - pipenv install pytest
|
|
|
|
# - name: Run tests
|
|
# image: python:3.10
|
|
# commands:
|
|
# pipenv run pytest
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Publish package to PyPi
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Newer version to publish?
|
|
image: python:3.10
|
|
commands:
|
|
- pip3 install delugeClient-kevin -q -q
|
|
- bash publish_version?.sh
|
|
|
|
- name: PyPi publish
|
|
image: python:3.10
|
|
commands:
|
|
- make dist
|
|
- pip3 install twine
|
|
- twine upload dist/*
|
|
|
|
depends_on:
|
|
- Build and test amd64
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
exclude:
|
|
- pull_request |