Skip to content
Snippets Groups Projects
Commit 10f75c93 authored by Manuel Marschall's avatar Manuel Marschall
Browse files

marsch02

parent 5db72e8d
No related branches found
No related tags found
No related merge requests found
Pipeline #6045 failed
...@@ -3,7 +3,6 @@ image: "python:3.7" ...@@ -3,7 +3,6 @@ image: "python:3.7"
stages: stages:
- Static Analysis - Static Analysis
- Test - Test
# - upload
- makepdf - makepdf
# - testdoc # - testdoc
...@@ -50,33 +49,33 @@ unit_test: ...@@ -50,33 +49,33 @@ unit_test:
- python3 -m pytest - python3 -m pytest
- python3 -m pytest --cov-report term-missing --cov=datainformed-prior tests/ - python3 -m pytest --cov-report term-missing --cov=datainformed-prior tests/
pypi: # pypi:
stage: upload # stage: upload
allow_failure: true # allow_failure: true
script: # script:
- cd python # - cd python
- python --version # - python --version
- pip install -r requirements.txt # - pip install -r requirements.txt
- apt-get update -qq && apt-get install -y -qq pandoc # - apt-get update -qq && apt-get install -y -qq pandoc
- python3 -m pip install --upgrade twine # - python3 -m pip install --upgrade twine
- rm -rf dist # - rm -rf dist
- echo "[distutils]" >> ~/.pypirc # - echo "[distutils]" >> ~/.pypirc
- echo " index-servers =" >> ~/.pypirc # - echo " index-servers =" >> ~/.pypirc
- echo " mcutility" >> ~/.pypirc # - echo " mcutility" >> ~/.pypirc
- echo "" >> ~/.pypirc # - echo "" >> ~/.pypirc
- echo "[mcutility]" >> ~/.pypirc # - echo "[mcutility]" >> ~/.pypirc
- echo " repository = https://test.pypi.org/legacy/" >> ~/.pypirc # - echo " repository = https://test.pypi.org/legacy/" >> ~/.pypirc
- echo " username = __token__" >> ~/.pypirc # - echo " username = __token__" >> ~/.pypirc
- echo " password = pypi-AgENdGVzdC5weXBpLm9yZwIkODc2YjkyNGMtYWFlMC00YTNkLTlmYzgtY2UzNzI5MGYwMzhlAAI6eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiOiBbIm1jdXRpbGl0eSJdfSwgInZlcnNpb24iOiAxfQAABiCNlJgWB50pL7DURSrfmJ6Qh1i5JnUjA5mTA8V4UobzkA" >> ~/.pypirc # - echo " password = pypi-AgENdGVzdC5weXBpLm9yZwIkODc2YjkyNGMtYWFlMC00YTNkLTlmYzgtY2UzNzI5MGYwMzhlAAI6eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiOiBbIm1jdXRpbGl0eSJdfSwgInZlcnNpb24iOiAxfQAABiCNlJgWB50pL7DURSrfmJ6Qh1i5JnUjA5mTA8V4UobzkA" >> ~/.pypirc
- echo "" >> ~/.pypirc # - echo "" >> ~/.pypirc
- python3 setup.py check sdist bdist # This will fail if your creds are bad. # - python3 setup.py check sdist bdist # This will fail if your creds are bad.
# Since create generates a *.linux*.tar.gz file, we have to delete ist # # Since create generates a *.linux*.tar.gz file, we have to delete ist
# Otherwise twine complains that only one .tar.gz is allowed for upload # # Otherwise twine complains that only one .tar.gz is allowed for upload
- rm -rf dist # - rm -rf dist
- python3 setup.py sdist bdist_wheel # - python3 setup.py sdist bdist_wheel
- twine upload -r mcutility dist/*.tar.gz # - twine upload -r mcutility dist/*.tar.gz
only: # only:
- master # - master
# test: # test:
# stage: testdoc # stage: testdoc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment