-
Notifications
You must be signed in to change notification settings - Fork 24
/
circle.yml
37 lines (36 loc) · 1.8 KB
/
circle.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
## Customize the test machine
machine:
## Add some environment variables
environment:
TERM: "dumb"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
java:
version: openjdk8
## Customize dependencies
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "tools,build-tools-24,platform-tools"
- echo y | android update sdk --no-ui --all --filter "android-24"
- echo y | android update sdk --no-ui --all --filter "build-tools-24.0.0"
- echo y | android update sdk --no-ui --all --filter "platform-tools-preview"
- echo y | android update sdk --no-ui --all --filter "build-tools-24,extra-google-m2repository,xtra-android-support,extra-android-m2repository"
## Customize test commands
test:
override:
- ./gradlew check -PpreDexLibraries=false
post:
- mkdir -p $CIRCLE_ARTIFACTS/sample/reports
- mkdir -p $CIRCLE_ARTIFACTS/sample/test-results
- mkdir -p $CIRCLE_ARTIFACTS/sample-dagger/reports
- mkdir -p $CIRCLE_ARTIFACTS/sample-dagger/test-results
- mkdir -p $CIRCLE_ARTIFACTS/library/reports
- mkdir -p $CIRCLE_ARTIFACTS/library/test-results
- cp -r sample/build/test-results/ $CIRCLE_ARTIFACTS/sample/test-results
- cp -r sample/build/reports/ $CIRCLE_ARTIFACTS/sample/reports
- cp -r sample/build/outputs/ $CIRCLE_ARTIFACTS/sample/outputs
- cp -r sample-dagger/build/test-results/ $CIRCLE_ARTIFACTS/sample-dagger/test-results
- cp -r sample-dagger/build/reports/ $CIRCLE_ARTIFACTS/sample-dagger/reports
- cp -r sample-dagger/build/outputs/ $CIRCLE_ARTIFACTS/sample-dagger/outputs
- cp -r library/build/test-results/ $CIRCLE_ARTIFACTS/library/test-results
- cp -r library/build/reports/ $CIRCLE_ARTIFACTS/library/reports
- cp -r library/build/outputs/ $CIRCLE_ARTIFACTS/library/outputs