-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwercker.yml
More file actions
61 lines (61 loc) · 2.3 KB
/
wercker.yml
File metadata and controls
61 lines (61 loc) · 2.3 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
box: wercker/android
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: show base information
code: |
gradle -v
echo $ANDROID_HOME
echo $ANDROID_SDK_VERSION
echo $ANDROID_BUILD_TOOLS
echo $ANDROID_UPDATE_FILTER
echo $ANDROID_NDK_HOME
# A step that executes `gradle build` command
- script:
name: run gradle build
code: |
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
- script:
name: run gradle pmd
code: |
gradle pmd
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
- script:
name: run gradle checkstyle
code: |
gradle checkstyle
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
- script:
name: run gradle findbugs
code: |
gradle findbugs
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
- script:
name: run gradle codenarc
code: |
gradle codenarc
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
- script:
name: run gradle lint
code: |
gradle lint
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
after-steps:
# Use the build results
- script:
name: inspect build result
code: |
ls -la AndroidPlugins/build/apk/
cp AndroidPlugins/build/apk/*.apk $WERCKER_REPORT_ARTIFACTS_DIR
ls -la AndroidPlugins/build/reports/pmd/
cp AndroidPlugins/build/reports/pmd/*.* $WERCKER_REPORT_ARTIFACTS_DIR
ls -la AndroidPlugins/build/reports/checkstyle/
cp AndroidPlugins/build/reports/checkstyle/*.* $WERCKER_REPORT_ARTIFACTS_DIR
ls -la AndroidPlugins/build/reports/findbugs/
cp AndroidPlugins/build/reports/findbugs/*.* $WERCKER_REPORT_ARTIFACTS_DIR
ls -la AndroidPlugins/build/reports/codenarc/
cp AndroidPlugins/build/reports/codenarc/*.* $WERCKER_REPORT_ARTIFACTS_DIR
ls -la AndroidPlugins/build/
cp AndroidPlugins/build/lint-results.* $WERCKER_REPORT_ARTIFACTS_DIR