-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcircle.yml
44 lines (39 loc) · 1.82 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
38
39
40
41
42
43
44
#
# Build configuration for Circle CI
#
general:
branches:
only:
- master
artifacts:
- /home/ubuntu/Adventuresmith/app/build/outputs/apk/
- /home/ubuntu/Adventuresmith/adventuresmith-cli/build/distributions/
machine:
java:
version: oraclejdk8
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
override:
- npm install -g cloc
- cloc --vcs git adventuresmith-cli adventuresmith-core app
- echo y | android update sdk --no-ui --all --filter "tools"
- echo y | android update sdk --no-ui --all --filter "platform-tools"
- echo y | android update sdk --no-ui --all --filter "android-25"
- echo y | android update sdk --no-ui --all --filter "build-tools-26.0.2"
- echo y | android update sdk --no-ui --all --filter "extra-google-google_play_services"
- echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
- echo y | android update sdk --no-ui --all --filter "extra-android-support"
- chmod +x gradlew
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies --console=plain
# TODO: http://surajms.com/2016/01/setting-up-android-build-on-circleci/
# TODO: https://github.com/circleci/EspressoSample/blob/master/circle.yml
test:
override:
- (./gradlew check test adventuresmith-cli:runExercise adventuresmith-cli:runGenerateDocs adventuresmith-cli:distZip -PdisablePreDex):
timeout: 1200
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;