-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy path.woodpecker.yml
More file actions
68 lines (61 loc) · 1.56 KB
/
.woodpecker.yml
File metadata and controls
68 lines (61 loc) · 1.56 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
variables:
- &android_image "cimg/android:2026.03"
steps:
prettier_markdown_check:
image: jauderho/prettier:3.8.3-alpine
commands:
- prettier -c "*.md" "*.yml"
when:
- event: pull_request
check_formatting:
image: *android_image
commands:
- sudo chown -R circleci:circleci .
- ./gradlew lintKotlin
environment:
GRADLE_USER_HOME: ".gradle"
when:
- event: pull_request
check_android_lint:
image: *android_image
commands:
- sudo chown -R circleci:circleci .
- ./gradlew lint
environment:
GRADLE_USER_HOME: ".gradle"
when:
- event: pull_request
build_project:
image: *android_image
commands:
- sudo chown -R circleci:circleci .
- ./gradlew assembleRelease
environment:
GRADLE_USER_HOME: ".gradle"
when:
- event: pull_request
run_tests:
image: *android_image
commands:
- sudo chown -R circleci:circleci .
- ./gradlew testDebug
environment:
GRADLE_USER_HOME: ".gradle"
when:
- event: pull_request
notify_success:
image: alpine:3
commands:
- apk add curl
- "curl -H'Title: ✔️ ${CI_REPO_NAME}/${CI_COMMIT_SOURCE_BRANCH}' -d'${CI_PIPELINE_URL}' ntfy.sh/jerboa_ci"
when:
- event: pull_request
status: [success]
notify_failure:
image: alpine:3
commands:
- apk add curl
- "curl -H'Title: ❌ ${CI_REPO_NAME}/${CI_COMMIT_SOURCE_BRANCH}' -d'${CI_PIPELINE_URL}' ntfy.sh/jerboa_ci"
when:
- event: pull_request
status: [failure]