2021-03-15 15:07:39 +00:00
|
|
|
pipeline:
|
|
|
|
unittest:
|
|
|
|
image: python
|
|
|
|
commands:
|
|
|
|
- pip install -r requirements.txt
|
2021-03-16 15:35:02 +00:00
|
|
|
- pip install flake8
|
2021-03-15 15:07:39 +00:00
|
|
|
- python3 test_tmdb.py
|
2021-09-22 08:54:27 +01:00
|
|
|
- flake8 --ignore=E501 --exclude=__init__.py --exclude=test_tmdb.py
|
2021-03-04 20:56:17 +00:00
|
|
|
|
2021-03-15 15:07:39 +00:00
|
|
|
build:
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- apk add zip
|
|
|
|
- ./create_release.sh ${DRONE_COMMIT_SHA:0:8}
|
|
|
|
|
|
|
|
upload:
|
|
|
|
image: uploader
|
|
|
|
project: tmdb-bot
|
|
|
|
artifact: lomion.tmdb.${DRONE_COMMIT_SHA:0:8}.mbp
|