Omgezet naar python module

This commit is contained in:
Marcel Nijenhof
2021-05-30 09:29:07 +02:00
parent 79579a20d7
commit 53a331eb81
6 changed files with 58 additions and 6 deletions

27
.drone.yml Normal file
View File

@@ -0,0 +1,27 @@
---
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/dd-api-oper
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