-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
26 lines (24 loc) · 1.14 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
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
java:
version: oraclejdk8
dependencies:
cache_directories:
- /usr/local/android-sdk-linux
- /home/ubuntu/.gradle
- /home/ubuntu/.m2
- /home/ubuntu/tplink-manager/.git
pre:
#- echo y | android update sdk --no-ui --all --filter tools,platform-tools,extra-google-m2repository,extra-google-google_play_services,extra-android-support,android-23
#- echo y | android update sdk --no-ui --all --filter build-tools-23.0.1
- if [ ! -d "/usr/local/android-sdk-linux/platforms/android-23" ]; then echo y | android update sdk --no-ui --all --filter "android-23"; fi
- if [ ! -d "/usr/local/android-sdk-linux/build-tools/23.0.1" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-23.0.1"; fi
- if [ ! -d "/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/design/23.0.1" ]; then echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"; fi
test:
override:
- ./gradlew lint:
parallel: true
- ./gradlew asR:
parallel: true
- cp -r app/build/outputs $CIRCLE_ARTIFACTS