forked from daolq3012/Structure_Android
-
Notifications
You must be signed in to change notification settings - Fork 5
/
circle.yml
28 lines (28 loc) · 1.44 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
machine:
ruby:
version: 2.0.0-p648
java:
version: oraclejdk8
timezone: Asia/Saigon
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
JAVA_OPTS: "-Xms512m -Xmx1024m"
GRADLE_OPTS: '-Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx1560m -XX:+HeapDumpOnOutOfMemoryError"'
TERM: dumb
REVIEWDOG_VERSION: 0.9.3
dependencies:
pre:
- git fetch origin # sometimes circleci fail to fetch branches correctly, so fetch them expressly
- echo y | android -s update sdk -u -a -t "tools" # update Android SDK that includes sdkmanager(1)
- mkdir -p $ANDROID_HOME/licenses
- echo -e "8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license
- echo -e "84831b9409646a918e30573bab4c9c91346d8abd" > $ANDROID_HOME/licenses/android-sdk-preview-license
- $ANDROID_HOME/tools/bin/sdkmanager "platform-tools" "extras;android;m2repository" "extras;google;m2repository"
- $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1"
- $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.1"
- curl -fSL https://github.com/haya14busa/reviewdog/releases/download/$REVIEWDOG_VERSION/reviewdog_linux_amd64 -o reviewdog && chmod +x ./reviewdog
override:
- ./gradlew app:dependencies
test:
override:
- sh scripts/saddler.sh