Added support for woodpecker CI

Because of historical reasons the pipeline file is still named drone.yaml (might be changed in future).
This commit is contained in:
lomion 2021-03-15 16:07:39 +01:00
parent 1ae2bbf230
commit 5cb36d7f34
2 changed files with 18 additions and 10 deletions

View file

@ -1 +1 @@
zip -r lomion.tmdb.mbp maubot.yaml tmdb/__init__.py tmdb/tmdb.py tmdb/tmdb_api.py tmdb/database.py
zip -r lomion.tmdb.$1.mbp maubot.yaml tmdb/__init__.py tmdb/tmdb.py tmdb/tmdb_api.py tmdb/database.py

View file

@ -1,10 +1,18 @@
kind: pipeline
type: docker
name: default
pipeline:
unittest:
image: python
commands:
- pip install -r requirements.txt
- python3 test_tmdb.py
steps:
- name: test
image: python
commands:
- pip install -r requirements.txt
- python3 test_tmdb.py
build:
image: alpine
commands:
- apk add zip
- ./create_release.sh ${DRONE_COMMIT_SHA:0:8}
- ls *.mbp
upload:
image: uploader
project: tmdb-bot
artifact: lomion.tmdb.${DRONE_COMMIT_SHA:0:8}.mbp