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:
parent
1ae2bbf230
commit
5cb36d7f34
|
@ -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
|
||||||
|
|
26
drone.yaml
26
drone.yaml
|
@ -1,10 +1,18 @@
|
||||||
kind: pipeline
|
pipeline:
|
||||||
type: docker
|
unittest:
|
||||||
name: default
|
image: python
|
||||||
|
commands:
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- python3 test_tmdb.py
|
||||||
|
|
||||||
steps:
|
build:
|
||||||
- name: test
|
image: alpine
|
||||||
image: python
|
commands:
|
||||||
commands:
|
- apk add zip
|
||||||
- pip install -r requirements.txt
|
- ./create_release.sh ${DRONE_COMMIT_SHA:0:8}
|
||||||
- python3 test_tmdb.py
|
- ls *.mbp
|
||||||
|
|
||||||
|
upload:
|
||||||
|
image: uploader
|
||||||
|
project: tmdb-bot
|
||||||
|
artifact: lomion.tmdb.${DRONE_COMMIT_SHA:0:8}.mbp
|
Loading…
Reference in a new issue