- Changed to setup.cfg - Changed to tox - Moved module dir to src - Moved tests dir from module to tests dir - Corrected .drone for changes - Update to 0.9.0
This commit is contained in:
49
.drone.yml
49
.drone.yml
@@ -11,9 +11,9 @@ platform:
|
||||
steps:
|
||||
- name: Run unit test
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
PYTHONPATH: src
|
||||
commands:
|
||||
- python3 setup.py test
|
||||
- python3 tests/main.py
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -28,9 +28,9 @@ platform:
|
||||
steps:
|
||||
- name: Run unit test
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
PYTHONPATH: src
|
||||
commands:
|
||||
- python3 setup.py test
|
||||
- python3 tests/main.py
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -45,9 +45,9 @@ platform:
|
||||
steps:
|
||||
- name: Run unit test
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
PYTHONPATH: src
|
||||
commands:
|
||||
- python3 setup.py test
|
||||
- python3 tests/main.py
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -62,9 +62,9 @@ platform:
|
||||
steps:
|
||||
- name: Run unit test
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
PYTHONPATH: src
|
||||
commands:
|
||||
- python3 setup.py test
|
||||
- tox
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -75,10 +75,10 @@ steps:
|
||||
- name: Run unit test
|
||||
image: python:3.6
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
PYTHONPATH: src
|
||||
commands:
|
||||
- pip install python-dateutil flask
|
||||
- python setup.py test
|
||||
- python tests/main.py
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -89,10 +89,11 @@ steps:
|
||||
- name: Run unit test
|
||||
image: python:latest
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
PYTHONPATH: src
|
||||
commands:
|
||||
- pip install python-dateutil flask
|
||||
- python setup.py test
|
||||
- python --version
|
||||
- python tests/main.py
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -107,7 +108,10 @@ platform:
|
||||
steps:
|
||||
- name: Build package files
|
||||
commands:
|
||||
- python3 setup.py sdist
|
||||
- python3 -m build
|
||||
- name: Run final test after build
|
||||
commands:
|
||||
- tox
|
||||
- name: Versie toevoegen aan download
|
||||
environment:
|
||||
DOWNLOADDIR: /usr/share/nginx/html/download/python/ddoperapi
|
||||
@@ -122,10 +126,18 @@ steps:
|
||||
echo version error
|
||||
exit 1
|
||||
else
|
||||
cp "$${f}" "$${DOWNLOADDIR}"
|
||||
cp "$${f}" "$${DOWNLOADDIR}";
|
||||
fi
|
||||
done
|
||||
- ls -l "$${DOWNLOADDIR}"
|
||||
- name: Versie upload naar pypi
|
||||
environment:
|
||||
TWINE_USERNAME:
|
||||
from_secret: twine_username
|
||||
TWINE_PASSWORD:
|
||||
from_secret: twine_password
|
||||
commands:
|
||||
- python3 -m twine upload dist/*
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
@@ -148,17 +160,14 @@ steps:
|
||||
image: python:3.6
|
||||
# Make sure we run the pip installed version
|
||||
commands:
|
||||
- rm -rf ddOperApi
|
||||
- pip install flask
|
||||
- >
|
||||
pip install --extra-index-url
|
||||
https://marceln.org/download/python ddOperApi
|
||||
- rm -rf src
|
||||
- pip install flask ddOperApi
|
||||
- python -c "import ddOperApi"
|
||||
- python -c "import ddOperApi; print(ddOperApi.__version__)"
|
||||
- >
|
||||
[ $(python -c "import ddOperApi; print(ddOperApi.__version__)") =
|
||||
$(python setup.py --version) ]
|
||||
- python -m unittest -v ddOperApi.tests
|
||||
- python tests/main.py
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
Reference in New Issue
Block a user