mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ci: Remove format-check, only keep format-run, renamed to black
This commit is contained in:
parent
5744e8eb16
commit
3dd7aa9b59
1 changed files with 3 additions and 11 deletions
|
@ -26,15 +26,7 @@ mypy:
|
||||||
script:
|
script:
|
||||||
- tox -e py37-mypy
|
- tox -e py37-mypy
|
||||||
|
|
||||||
format-check:
|
black:
|
||||||
stage: lint
|
|
||||||
image: "before-install"
|
|
||||||
allow_failure: true
|
|
||||||
needs: []
|
|
||||||
script:
|
|
||||||
- tox -e py37-black-check
|
|
||||||
|
|
||||||
format-run:
|
|
||||||
stage: lint
|
stage: lint
|
||||||
image: "before-install"
|
image: "before-install"
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -49,9 +41,9 @@ format-run:
|
||||||
- git checkout -b "ci-format-${CI_COMMIT_REF_NAME}" --no-track
|
- git checkout -b "ci-format-${CI_COMMIT_REF_NAME}" --no-track
|
||||||
- tox -e py37-black-run
|
- tox -e py37-black-run
|
||||||
- '[ $(git diff | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit
|
- '[ $(git diff | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit
|
||||||
- git commit -am "[CI] Format code" || true
|
- git commit -am "[CI] Format code with Black" || true
|
||||||
- git push -f origin "ci-format-${CI_COMMIT_REF_NAME}":"ci-format-${CI_COMMIT_REF_NAME}"
|
- git push -f origin "ci-format-${CI_COMMIT_REF_NAME}":"ci-format-${CI_COMMIT_REF_NAME}"
|
||||||
- hub pull-request -m "[CI] Format code" -b Yunohost:dev -p || true # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd
|
- hub pull-request -m "[CI] Format code with Black" -b Yunohost:dev -p || true # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- dev
|
- dev
|
||||||
|
|
Loading…
Add table
Reference in a new issue