2022-12-07 22:04:50 +00:00
|
|
|
---
|
|
|
|
|
2023-11-30 14:59:19 +00:00
|
|
|
# `make verifs` only checks changed files, so it make sense only on
|
|
|
|
# pull requests.
|
|
|
|
|
|
|
|
# Also we're using `branch: "$CI_COMMIT_SOURCE_BRANCH"` because the
|
|
|
|
# default branch name is the target branch, conflicting with the fact
|
|
|
|
# the Makefile tries to compare the current branch to the target
|
|
|
|
# branch...
|
|
|
|
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
|
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
branch: ${CI_COMMIT_SOURCE_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
fetch target branch:
|
|
|
|
image: python
|
|
|
|
commands:
|
|
|
|
- BRANCH="$(make print-BRANCH)"
|
|
|
|
- git fetch origin --no-tags +refs/heads/$BRANCH
|
|
|
|
- git branch $BRANCH origin/$BRANCH
|
|
|
|
- git branch -va
|
|
|
|
|
2022-12-07 22:04:50 +00:00
|
|
|
test:
|
|
|
|
image: python
|
|
|
|
commands:
|
2023-04-01 19:44:08 +00:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y hunspell hunspell-fr-comprehensive
|
2022-12-07 22:04:50 +00:00
|
|
|
- python3 -m pip install -r requirements.txt
|
2023-11-30 14:59:19 +00:00
|
|
|
- make diff
|
2023-04-01 19:44:08 +00:00
|
|
|
- make verifs
|