Files
lmwsip/.drone.yml
Marcel Nijenhof da5da044ef
All checks were successful
continuous-integration/drone/push Build is passing
Drone: correctie pipeline
2020-09-08 15:08:46 +02:00

31 lines
594 B
YAML

---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
steps:
- name: Run unit test
environment:
PYTHONPATH: .
commands:
- python test/__init__.py
- name: Build package files
commands:
- python3 setup.py sdist bdist_wheel
- 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
when:
branch:
- master