mopidy-funkwhale/.gitlab-ci.yml

53 lines
898 B
YAML
Raw Normal View History

2018-10-03 22:18:57 +02:00
stages:
- test
- build
- publish
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
- 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