Test voor CentOS8 en Ubuntu 18.04
This commit is contained in:
95
.drone.yml
95
.drone.yml
@@ -15,6 +15,41 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- python3 setup.py test
|
- python3 setup.py test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: CentOS8_test
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
variant: CentOS8
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Run unit test
|
||||||
|
environment:
|
||||||
|
PYTHONPATH: .
|
||||||
|
commands:
|
||||||
|
- python3 setup.py test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: Ubuntu1804_test
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
variant: Ubuntu1804
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Run unit test
|
||||||
|
environment:
|
||||||
|
PYTHONPATH: .
|
||||||
|
commands:
|
||||||
|
- python3 setup.py test
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
@@ -72,3 +107,63 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- CentOS7_test
|
- CentOS7_test
|
||||||
- Fedora_test
|
- Fedora_test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: Fedora_test
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
variant: Fedora
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Run unit test
|
||||||
|
environment:
|
||||||
|
PYTHONPATH: .
|
||||||
|
commands:
|
||||||
|
- python setup.py test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
variant: Fedora
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Build package files
|
||||||
|
commands:
|
||||||
|
- python 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
|
||||||
|
- ls -l "$${DOWNLOADDIR}"
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- CentOS7_test
|
||||||
|
- CentOS8_test
|
||||||
|
- Ubuntu1804_test
|
||||||
|
- Fedora_test
|
||||||
|
@@ -12,7 +12,7 @@ from datetime import datetime, timedelta
|
|||||||
from dateutil import tz
|
from dateutil import tz
|
||||||
|
|
||||||
""" Version info changed by git hook """
|
""" Version info changed by git hook """
|
||||||
__version__ = '0.1.03'
|
__version__ = '0.1.04'
|
||||||
|
|
||||||
class LmwSip:
|
class LmwSip:
|
||||||
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
||||||
|
2
setup.py
2
setup.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="lmwsip", # Replace with your own username
|
name="lmwsip", # Replace with your own username
|
||||||
version="0.1.03",
|
version="0.1.04",
|
||||||
author="Marcel Nijenhof",
|
author="Marcel Nijenhof",
|
||||||
author_email="pip@pion.xs4all.nl",
|
author_email="pip@pion.xs4all.nl",
|
||||||
description="Interface for the lmw sip protocol",
|
description="Interface for the lmw sip protocol",
|
||||||
|
Reference in New Issue
Block a user