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
|
image: before-postinstall
|
||||||
stage: lint
|
stage: lint
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get install python3-pip -y
|
- apt-get install python-pip -y
|
||||||
- mkdir -p .pip3
|
- mkdir -p .pip
|
||||||
- pip3 install -U pip
|
- pip install -U pip
|
||||||
- hash -d pip3
|
- hash -d pip
|
||||||
- pip3 --cache-dir=.pip3 install flake8 # black
|
- pip --cache-dir=.pip install tox
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .pip3
|
- .pip
|
||||||
|
- .tox
|
||||||
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
|
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
extends: .lint-stage
|
extends: .lint-stage
|
||||||
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- flake8
|
- tox -e lint
|
||||||
|
|
||||||
# Disabled, waiting for buster
|
# Disabled, waiting for buster
|
||||||
#format-check:
|
#format-check:
|
||||||
|
|
Loading…
Add table
Reference in a new issue