mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
use tox
This commit is contained in:
parent
4dccab9819
commit
3b93ba4772
1 changed files with 9 additions and 7 deletions
|
@ -108,20 +108,22 @@ test-regenconf:
|
|||
image: before-postinstall
|
||||
stage: lint
|
||||
before_script:
|
||||
- apt-get install python3-pip -y
|
||||
- mkdir -p .pip3
|
||||
- pip3 install -U pip
|
||||
- hash -d pip3
|
||||
- pip3 --cache-dir=.pip3 install flake8 # black
|
||||
- apt-get install python-pip -y
|
||||
- mkdir -p .pip
|
||||
- pip install -U pip
|
||||
- hash -d pip
|
||||
- pip --cache-dir=.pip install tox
|
||||
cache:
|
||||
paths:
|
||||
- .pip3
|
||||
- .pip
|
||||
- .tox
|
||||
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
|
||||
|
||||
lint:
|
||||
extends: .lint-stage
|
||||
allow_failure: true
|
||||
script:
|
||||
- flake8
|
||||
- tox -e lint
|
||||
|
||||
# Disabled, waiting for buster
|
||||
#format-check:
|
||||
|
|
Loading…
Add table
Reference in a new issue