Files
ddOperApi/.drone.yml
2021-05-31 13:26:59 +02:00

28 lines
605 B
YAML

---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
steps:
- name: Run unit test
environment:
PYTHONPATH: .
commands:
- python setup.py test
- name: Build package files
commands:
- python setup.py sdist
- name: Versie toevoegen aan download
environment:
DOWNLOADDIR: /usr/share/nginx/html/download/python/ddoperapi
commands:
- mkdir -p "$${DOWNLOADDIR}"
- cd dist
- for f in *;do if [ -f "$${DOWNLOADDIR}/$${f}" ] ; then echo version error;exit 1;else cp "$${f}" "$${DOWNLOADDIR}";fi;done
- ls -l "$${DOWNLOADDIR}"
when:
branch:
- master