2018-10-03 22:18:57 +02:00
|
|
|
stages:
|
2022-02-06 11:59:20 +01:00
|
|
|
- lint
|
2018-10-03 22:18:57 +02:00
|
|
|
- test
|
2020-08-20 11:27:13 +02:00
|
|
|
- build
|
|
|
|
- publish
|
2018-10-03 22:18:57 +02:00
|
|
|
|
2022-02-06 11:59:20 +01:00
|
|
|
lint:
|
|
|
|
stage: lint
|
2023-12-04 12:33:10 +01:00
|
|
|
image: python:3.12
|
2022-02-06 11:59:20 +01:00
|
|
|
before_script:
|
2022-02-06 12:05:53 +01:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install libgirepository1.0-dev -y
|
2022-02-06 11:59:20 +01:00
|
|
|
- pip install .[lint]
|
|
|
|
script:
|
|
|
|
- black .
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
2018-10-03 22:18:57 +02:00
|
|
|
test:
|
|
|
|
stage: test
|
2020-05-11 16:13:45 +02:00
|
|
|
image: python:3
|
2018-10-03 22:18:57 +02:00
|
|
|
before_script:
|
2018-10-03 22:40:14 +02:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install libgirepository1.0-dev -y
|
2018-10-03 22:18:57 +02:00
|
|
|
- pip install .[test]
|
|
|
|
script:
|
|
|
|
- pytest
|
|
|
|
tags:
|
|
|
|
- docker
|
2020-08-20 11:27:13 +02:00
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
image: python:3
|
|
|
|
before_script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install libgirepository1.0-dev -y
|
|
|
|
- pip install .[build]
|
|
|
|
script:
|
|
|
|
- python3 setup.py sdist bdist_wheel
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- dist/*
|
|
|
|
expire_in: 1 week
|
|
|
|
only:
|
|
|
|
- tags@funkwhale/mopidy
|
2022-02-04 17:40:54 +01:00
|
|
|
- main@funkwhale/mopidy
|
2020-08-20 11:27:13 +02:00
|
|
|
|
|
|
|
publish:
|
|
|
|
stage: publish
|
|
|
|
image: python:3
|
|
|
|
before_script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install libgirepository1.0-dev -y
|
|
|
|
- pip install .[publish]
|
|
|
|
script:
|
|
|
|
- twine upload dist/*
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
only:
|
|
|
|
- tags@funkwhale/mopidy
|
2022-02-04 17:40:54 +01:00
|
|
|
- main@funkwhale/mopidy
|