-
Notifications
You must be signed in to change notification settings - Fork 74
/
config.yml
63 lines (59 loc) · 1.49 KB
/
config.yml
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
version: 2.1
orbs:
codecov: codecov/codecov@3
commands:
checkout-and-build:
steps:
- checkout
- run: chmod +x gradlew
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "build.gradle" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: ./gradlew clean build
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "build.gradle" }}
run-tests:
steps:
- run: ./gradlew check jacocoTestReport --continue --console=plain
- codecov/upload
run-api-diff:
steps:
# run apiDiff task
- run: ./gradlew apiDiff
- store_artifacts:
path: build/reports/apiDiff/apiDiff.txt
- store_artifacts:
path: build/reports/apiDiff/apiDiff.html
jobs:
build:
docker:
- image: openjdk:8-jdk
steps:
- checkout-and-build
- run-tests
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
TERM: dumb
api-diff:
docker:
- image: openjdk:8-jdk
steps:
- checkout-and-build
- run-api-diff
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
TERM: dumb
workflows:
build-and-test:
jobs:
- build
api-diff:
jobs:
- api-diff