mopidy-funkwhale/.gitlab-ci.yml

53 lines
898 B
YAML

stages:
- test
- build
- publish
test:
stage: test
image: python:3
before_script:
- apt-get update
- apt-get install libgirepository1.0-dev -y
- 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
- master@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
- master@funkwhale/mopidy