141 lines
2.1 KiB
YAML
141 lines
2.1 KiB
YAML
---
|
|
kind: pipeline
|
|
type: exec
|
|
name: CentOS7_test
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
variant: CentOS7
|
|
|
|
steps:
|
|
- name: Run unit test
|
|
environment:
|
|
PYTHONPATH: .
|
|
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:
|
|
- python 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
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: docker_python:latest
|
|
|
|
steps:
|
|
- name: Run unit test
|
|
image: python:latest
|
|
environment:
|
|
PYTHONPATH: .
|
|
commands:
|
|
- pip install python-dateutil
|
|
- python --version
|
|
- 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
|
|
- docker_python:latest
|
|
- docker_python:3.6
|