-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathcircle.yml
27 lines (23 loc) · 1.12 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
# Build configuration file for Circle CI
# needs to be named `circle.yml` and should be in the top level dir of the repo
machine:
java:
version: oraclejdk8
environment:
# set the adb install tcimeout to 8 minutes (default is 2 minutes)
ADB_INSTALL_TIMEOUT: 8
# set memory limits for java processes because the container has a memory limit of 4G
JAVA_OPTS: "-Xms512m -Xmx1024m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "tools,platform-tools,android-23,extra-android-support,extra-google-google_play_services,extra-google-m2repository,extra-android-m2repository"
- echo y | android update sdk --no-ui --all --filter "build-tools-23.0.2"
test:
override:
# build the project and run static analysis while we wait for the emulator to boot (lint, pmd, findbugs, checkstyle)
- ./gradlew assembleDebug check -PdisablePreDex
post:
# copy the build outputs to artifacts
- cp -r MagicViews/build/outputs $CIRCLE_ARTIFACTS
- cp -r MagicViews/build/reports $CIRCLE_ARTIFACTS