Skip to content
Snippets Groups Projects
Commit 5b9b56558d87 authored by Noé Gaumont's avatar Noé Gaumont :octopus:
Browse files

fix: use custom image having tox already installed

parent 89645cefaf74
No related branches found
No related tags found
1 merge request!20fix: use custom image having tox already installed
Pipeline #88001 passed
--- ---
black: black:
interruptible: true interruptible: true
before_script: image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
- pip install tox
stage: lint stage: lint
script: tox -e black script: tox -e black
--- ---
check-manifest: check-manifest:
interruptible: true interruptible: true
before_script: image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
- pip install tox
stage: lint stage: lint
script: tox -e check-manifest script: tox -e check-manifest
--- ---
flake8: flake8:
interruptible: true interruptible: true
before_script: image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
- pip install tox flake8-gl-codeclimate
stage: lint stage: lint
script: script:
- tox -e flake8 -- --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json - tox -e flake8 -- --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json
......
--- ---
mypy: mypy:
interruptible: true interruptible: true
before_script: image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
- pip install tox
stage: lint stage: lint
allow_failure: true allow_failure: true
script: tox -e mypy script: tox -e mypy
...@@ -2,6 +2,5 @@ ...@@ -2,6 +2,5 @@
safety: safety:
interruptible: true interruptible: true
stage: lint stage: lint
before_script: image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
- pip install tox
script: tox -e safety script: tox -e safety
--- ---
yamllint: yamllint:
interruptible: true interruptible: true
before_script: image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
- pip install tox
stage: lint stage: lint
rules: rules:
- changes: - changes:
......
--- ---
py3: py3:
interruptible: true interruptible: true
before_script: image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
- pip install tox
stage: tests stage: tests
script: tox -e py3 -- --junitxml=report.xml script: tox -e py3 -- --junitxml=report.xml
artifacts: artifacts:
......
--- ---
pypi-publish: pypi-publish:
stage: publish stage: publish
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
rules: rules:
- if: '$CI_MERGE_REQUEST_ID' - if: '$CI_MERGE_REQUEST_ID'
when: never when: never
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
when: on_success when: on_success
script: script:
...@@ -4,8 +5,7 @@ ...@@ -4,8 +5,7 @@
rules: rules:
- if: '$CI_MERGE_REQUEST_ID' - if: '$CI_MERGE_REQUEST_ID'
when: never when: never
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
when: on_success when: on_success
script: script:
- pip install tox
- tox -e pypi-publish - tox -e pypi-publish
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment