fetch git tags before poetry commands

This commit is contained in:
Robert Kaussow 2020-12-24 00:33:18 +01:00
parent 97c8e5180c
commit 20773cbb24
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 13 additions and 6 deletions

View File

@ -5,7 +5,6 @@ local PythonVersion(pyversion='3.5') = {
PY_COLORS: 1, PY_COLORS: 1,
}, },
commands: [ commands: [
'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',
'poetry install -q', 'poetry install -q',
'poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail', 'poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail',
@ -54,6 +53,13 @@ local PipelineTest = {
arch: 'amd64', arch: 'amd64',
}, },
steps: [ steps: [
{
name: 'fetch',
image: 'python:3.9',
commands: [
'git fetch -tq',
],
},
PythonVersion(pyversion='3.6'), PythonVersion(pyversion='3.6'),
PythonVersion(pyversion='3.7'), PythonVersion(pyversion='3.7'),
PythonVersion(pyversion='3.8'), PythonVersion(pyversion='3.8'),

View File

@ -35,10 +35,14 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: fetch
image: python:3.9
commands:
- git fetch -tq
- name: python36-pytest - name: python36-pytest
image: python:3.6 image: python:3.6
commands: commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry install -q - poetry install -q
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail - poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
@ -52,7 +56,6 @@ steps:
- name: python37-pytest - name: python37-pytest
image: python:3.7 image: python:3.7
commands: commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry install -q - poetry install -q
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail - poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
@ -66,7 +69,6 @@ steps:
- name: python38-pytest - name: python38-pytest
image: python:3.8 image: python:3.8
commands: commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry install -q - poetry install -q
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail - poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
@ -80,7 +82,6 @@ steps:
- name: python39-pytest - name: python39-pytest
image: python:3.9 image: python:3.9
commands: commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry install -q - poetry install -q
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail - poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
@ -663,6 +664,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 0d65e2bcc25f551af7335b766efdfe441f634d411c4fab68d11367e51a9a2e22 hmac: e6019acabf9aa621c86476cf604105cfdee5a58d6c0cbea069b9159f180ecf24
... ...