mopidy-funkwhale/.gitlab-ci.yml

66 lines
1.1 KiB
YAML
Raw Normal View History

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
- build
- publish
2018-10-03 22:18:57 +02:00
2022-02-06 11:59:20 +01:00
lint:
stage: lint
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
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
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