Commit 5b9b5655 authored by Noé Gaumont's avatar Noé Gaumont 🐙
Browse files

fix: use custom image having tox already installed

parent 89645cefaf74
Pipeline #88001 passed with stage
in 15 seconds
---
black:
interruptible: true
before_script:
- pip install tox
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
stage: lint
script: tox -e black
---
check-manifest:
interruptible: true
before_script:
- pip install tox
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
stage: lint
script: tox -e check-manifest
---
flake8:
interruptible: true
before_script:
- pip install tox flake8-gl-codeclimate
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
stage: lint
script:
- tox -e flake8 -- --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json
......
---
mypy:
interruptible: true
before_script:
- pip install tox
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
stage: lint
allow_failure: true
script: tox -e mypy
......@@ -2,6 +2,5 @@
safety:
interruptible: true
stage: lint
before_script:
- pip install tox
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
script: tox -e safety
---
yamllint:
interruptible: true
before_script:
- pip install tox
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
stage: lint
rules:
- changes:
......
---
py3:
interruptible: true
before_script:
- pip install tox
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
stage: tests
script: tox -e py3 -- --junitxml=report.xml
artifacts:
......
---
pypi-publish:
stage: publish
image: registry.logilab.fr/logilab/infra/dockerfiles/debian-buster-slim-pg11
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- if: '$CI_COMMIT_TAG'
when: on_success
script:
- pip install tox
- tox -e pypi-publish
Markdown is supported
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