diff --git a/.drone.yml b/.drone.yml index afae2bd..31ff458 100644 --- a/.drone.yml +++ b/.drone.yml @@ -114,7 +114,9 @@ steps: - name: Build package files commands: - python3 -m build - + - name: Run final test after build + commands: + - tox - name: Versie toevoegen aan download environment: DOWNLOADDIR: /usr/share/nginx/html/download/python/lmwsip @@ -133,6 +135,14 @@ steps: fi done - ls -l "$${DOWNLOADDIR}" + - name: Versie upload naar pypi test + environment: + TWINE_USERNAME: + from_secret: twine_username + TWINE_PASSWORD: + from_secret: twine_password + commands: + - python3 -m twine upload --repository testpypi dist/* when: branch: - master