diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4365cab1a94732285eebf0a408b23699d6a16aaf..00a453b2ddcfb743b42e1944031539c7768f7bd4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,13 +22,7 @@ test: - pip install pytest-cov - coverage run -m pytest - coverage report - - pytest --junitxml=dist - - ls -la - artifacts: - when: always - name: report.xml - reports: - junit: "dist" + - pytest --junitxml=report.xml only: - branches @@ -36,6 +30,9 @@ test: tags: - shared-fi artifacts: + when: always + reports: + junit: report.xml paths: - dist expire_in: 1 day @@ -69,7 +66,7 @@ deploy: #- echo "requests.delete('https://gitlab.fi.muni.cz/api/v4/projects/14820/packages/'+str(requests.get('https://gitlab.fi.muni.cz/api/v4/projects/14820/packages', headers={'PRIVATE-TOKEN':sys.argv[1],}).json()[-1]['id']), headers={'PRIVATE-TOKEN':sys.argv[1],})" >> remover.py #- python3 -m pip install requests #- python3 remover.py $api_token - - python -m twine upload --repository gitlab dist/generator-*-py3-none-any.whl + - python -m twine upload --repository gitlab dist/* dependencies: - build only: