Commit 10f75c93 authored by Manuel Marschall's avatar Manuel Marschall
Browse files

marsch02

parent 5db72e8d
Pipeline #6045 failed with stages
in 3 minutes and 18 seconds
......@@ -3,7 +3,6 @@ image: "python:3.7"
stages:
- Static Analysis
- Test
# - upload
- makepdf
# - testdoc
......@@ -50,33 +49,33 @@ unit_test:
- python3 -m pytest
- python3 -m pytest --cov-report term-missing --cov=datainformed-prior tests/
pypi:
stage: upload
allow_failure: true
script:
- cd python
- python --version
- pip install -r requirements.txt
- apt-get update -qq && apt-get install -y -qq pandoc
- python3 -m pip install --upgrade twine
- rm -rf dist
- echo "[distutils]" >> ~/.pypirc
- echo " index-servers =" >> ~/.pypirc
- echo " mcutility" >> ~/.pypirc
- echo "" >> ~/.pypirc
- echo "[mcutility]" >> ~/.pypirc
- echo " repository = https://test.pypi.org/legacy/" >> ~/.pypirc
- echo " username = __token__" >> ~/.pypirc
- echo " password = pypi-AgENdGVzdC5weXBpLm9yZwIkODc2YjkyNGMtYWFlMC00YTNkLTlmYzgtY2UzNzI5MGYwMzhlAAI6eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiOiBbIm1jdXRpbGl0eSJdfSwgInZlcnNpb24iOiAxfQAABiCNlJgWB50pL7DURSrfmJ6Qh1i5JnUjA5mTA8V4UobzkA" >> ~/.pypirc
- echo "" >> ~/.pypirc
- 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
# Otherwise twine complains that only one .tar.gz is allowed for upload
- rm -rf dist
- python3 setup.py sdist bdist_wheel
- twine upload -r mcutility dist/*.tar.gz
only:
- master
# pypi:
# stage: upload
# allow_failure: true
# script:
# - cd python
# - python --version
# - pip install -r requirements.txt
# - apt-get update -qq && apt-get install -y -qq pandoc
# - python3 -m pip install --upgrade twine
# - rm -rf dist
# - echo "[distutils]" >> ~/.pypirc
# - echo " index-servers =" >> ~/.pypirc
# - echo " mcutility" >> ~/.pypirc
# - echo "" >> ~/.pypirc
# - echo "[mcutility]" >> ~/.pypirc
# - echo " repository = https://test.pypi.org/legacy/" >> ~/.pypirc
# - echo " username = __token__" >> ~/.pypirc
# - echo " password = pypi-AgENdGVzdC5weXBpLm9yZwIkODc2YjkyNGMtYWFlMC00YTNkLTlmYzgtY2UzNzI5MGYwMzhlAAI6eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiOiBbIm1jdXRpbGl0eSJdfSwgInZlcnNpb24iOiAxfQAABiCNlJgWB50pL7DURSrfmJ6Qh1i5JnUjA5mTA8V4UobzkA" >> ~/.pypirc
# - echo "" >> ~/.pypirc
# - 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
# # Otherwise twine complains that only one .tar.gz is allowed for upload
# - rm -rf dist
# - python3 setup.py sdist bdist_wheel
# - twine upload -r mcutility dist/*.tar.gz
# only:
# - master
# test:
# stage: testdoc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment