-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathcircle.yml
35 lines (33 loc) · 1.35 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
machine:
ruby:
version: jruby-1.7.12
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
JAVA_OPTS: "-Xmx256m -XX:MaxPermSize=256m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx256m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError"'
TEST_OPTS: "-PmintApiKey=mint_test_key -PapiKey=test_api_key -PbuildNumber=test_build_number"
java:
version: oraclejdk8
dependencies:
pre:
- echo y | android update sdk --all --no-ui --force --filter "build-tools-25.0.1"
- echo y | android update sdk --all --no-ui --force --filter "android-25"
- echo y | android update sdk --all --no-ui --force --filter "extra-android-m2repository"
- sudo apt-get update; sudo apt-get install s3cmd
- printf "[default]\naccess_key = $S3_ACCESS_KEY\n secret_key = $S3_SECRET_KEY" > ~/.s3cfg
test:
override:
- case $CIRCLE_NODE_INDEX in 0) ./gradlew testDevDebug --tests='*.model.*' $TEST_OPTS ;; 1) ./gradlew testDevDebug --tests='*.view.*' $TEST_OPTS ;; 2) ./gradlew testDevDebug --tests='*.presenter.*' $TEST_OPTS ;; esac:
parallel: true
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit
- cp app/build/test-results/testDevDebugUnitTest/*.xml $CIRCLE_TEST_REPORTS/junit
deployment:
all:
branch: /^(?!master).*$/
commands:
- scripts/deploy.sh
master:
branch: master
commands:
- scripts/deploy-master.sh