Syntax correctie & keep yamlint happy
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
61
.drone.yml
61
.drone.yml
@@ -9,11 +9,11 @@ platform:
|
|||||||
variant: CentOS7
|
variant: CentOS7
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Run unit test
|
- name: Run unit test
|
||||||
environment:
|
environment:
|
||||||
PYTHONPATH: .
|
PYTHONPATH: .
|
||||||
commands:
|
commands:
|
||||||
- python3 setup.py test
|
- python3 setup.py test
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@@ -26,11 +26,11 @@ platform:
|
|||||||
variant: Fedora
|
variant: Fedora
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Run unit test
|
- name: Run unit test
|
||||||
environment:
|
environment:
|
||||||
PYTHONPATH: .
|
PYTHONPATH: .
|
||||||
commands:
|
commands:
|
||||||
- python setup.py test
|
- python setup.py test
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@@ -42,22 +42,33 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
variant: Fedora
|
variant: Fedora
|
||||||
|
|
||||||
- name: Build package files
|
steps:
|
||||||
commands:
|
- name: Build package files
|
||||||
- python setup.py sdist bdist_wheel
|
commands:
|
||||||
|
- python setup.py sdist bdist_wheel
|
||||||
|
|
||||||
- name: Versie toevoegen aan download
|
- name: Versie toevoegen aan download
|
||||||
environment:
|
environment:
|
||||||
DOWNLOADDIR: /usr/share/nginx/html/download/python/lmwsip
|
DOWNLOADDIR: /usr/share/nginx/html/download/python/lmwsip
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p "$${DOWNLOADDIR}"
|
- mkdir -p "$${DOWNLOADDIR}"
|
||||||
- cd dist
|
- 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}"
|
for f in *
|
||||||
when:
|
do
|
||||||
branch:
|
if [ -f "$${DOWNLOADDIR}/$${f}" ]
|
||||||
- master
|
then
|
||||||
|
echo version error
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
cp "$${f}" "$${DOWNLOADDIR}";
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
- ls -l "$${DOWNLOADDIR}"
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- CentOS7_test
|
- CentOS7_test
|
||||||
- Fedora_test
|
- Fedora_test
|
||||||
|
Reference in New Issue
Block a user