Files
lmwsip/.drone.yml
Marcel Nijenhof 2281ef9427
Some checks failed
continuous-integration/drone/push Build is failing
Cleanup & correctie tests
2020-09-08 17:19:47 +02:00

32 lines
616 B
YAML

---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
steps:
- name: Run unit test
environment:
PYTHONPATH: .
commands:
- python lmwsip/tests/__init__.py
- name: Build package files
commands:
- python setup.py test
- name: Versie toevoegen aan download
environment:
DOWNLOADDIR: /usr/share/nginx/html/download/python/lmwsip
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