Uitbreiding pipeline met test meerdere platformen
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:
124
.drone.yml
124
.drone.yml
@@ -1,16 +1,110 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: default
|
name: CentOS7_test
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
variant: CentOS7
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Run unit test
|
- name: Run unit test
|
||||||
environment:
|
environment:
|
||||||
PYTHONPATH: .
|
PYTHONPATH: .
|
||||||
commands:
|
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
|
||||||
|
name: Fedora_test
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
variant: Fedora
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Run unit test
|
||||||
|
environment:
|
||||||
|
PYTHONPATH: .
|
||||||
|
commands:
|
||||||
|
- python3 setup.py test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: docker_python:3.6
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Run unit test
|
||||||
|
image: python:3.6
|
||||||
|
environment:
|
||||||
|
PYTHONPATH: .
|
||||||
|
commands:
|
||||||
|
- pip install python-dateutil
|
||||||
- python setup.py test
|
- python setup.py test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: docker_python:latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Run unit test
|
||||||
|
image: python:latest
|
||||||
|
environment:
|
||||||
|
PYTHONPATH: .
|
||||||
|
commands:
|
||||||
|
- pip install python-dateutil
|
||||||
|
- python setup.py test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: default
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
vatiant: Fedora
|
||||||
|
|
||||||
|
steps:
|
||||||
- name: Build package files
|
- name: Build package files
|
||||||
commands:
|
commands:
|
||||||
- python setup.py sdist
|
- python setup.py sdist
|
||||||
@@ -25,3 +119,31 @@ steps:
|
|||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- CentOS7_test
|
||||||
|
- CentOS8_test
|
||||||
|
- Ubuntu1804_test
|
||||||
|
- Fedora_test
|
||||||
|
- docker_python:latest
|
||||||
|
- docker_python:3.6
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: installCheck
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: install Check
|
||||||
|
image: python:3.6
|
||||||
|
# Make sure we run the pip installed version
|
||||||
|
commands:
|
||||||
|
- rm -rf ddOperApi
|
||||||
|
# - pip install --extra-index-url https://marceln.org/download/python ddOperApi
|
||||||
|
# - python -c "import lmwsip"
|
||||||
|
# - python -c "import lmwsip; print(lmwsip.__version__)"
|
||||||
|
# - >
|
||||||
|
# [ $(python -c "import lmwsip; print(lmwsip.__version__)") =
|
||||||
|
# $(python setup.py --version) ]
|
||||||
|
# - python -m unittest -v lmwsip.tests
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user