From aa7ae08863334bcc57962a88ec92c4e1ab66b07d Mon Sep 17 00:00:00 2001 From: Marcel Nijenhof Date: Mon, 19 Jul 2021 00:01:05 +0200 Subject: [PATCH] Test voor CentOS8 en Ubuntu 18.04 --- .drone.yml | 95 ++++++++++++++++++++++++++++++++++++++++++++++ lmwsip/__init__.py | 2 +- setup.py | 2 +- 3 files changed, 97 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index deac7e9..4d8ae08 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,6 +15,41 @@ steps: commands: - 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 type: exec @@ -72,3 +107,63 @@ steps: depends_on: - CentOS7_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 diff --git a/lmwsip/__init__.py b/lmwsip/__init__.py index 5520d74..a15a0f4 100644 --- a/lmwsip/__init__.py +++ b/lmwsip/__init__.py @@ -12,7 +12,7 @@ from datetime import datetime, timedelta from dateutil import tz """ Version info changed by git hook """ -__version__ = '0.1.03' +__version__ = '0.1.04' class LmwSip: """Class to connect to the LMW Standard Interface prototcol (sip) diff --git a/setup.py b/setup.py index d59df32..1c0aa2b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as fh: setuptools.setup( name="lmwsip", # Replace with your own username - version="0.1.03", + version="0.1.04", author="Marcel Nijenhof", author_email="pip@pion.xs4all.nl", description="Interface for the lmw sip protocol",