-
-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy path.woodpecker.yml
More file actions
37 lines (31 loc) · 899 Bytes
/
.woodpecker.yml
File metadata and controls
37 lines (31 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
# `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
test:
image: python
commands:
- apt-get update
- apt-get install -y hunspell hunspell-fr-comprehensive gettext
- python3 -m pip install -r requirements.txt
- make diff
- make verifs