forked from DroidKaigi/conference-app-2017
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
40 lines (37 loc) · 1.83 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
machine:
java:
version: oraclejdk8
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.0-beta5"
- $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta5"
- 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:
- ./gradlew assembleProductionDebug
- "./gradlew lint 2>&1 | ./reviewdog -efm='%f:%l: %m' -name='Android Lint' -ci='circle-ci'"
- ./gradlew checkLicenses
- ./gradlew jacocoTestReportDevelop
- find . -name app*debug.apk -exec cp {} $CIRCLE_ARTIFACTS/ \;
deployment:
production:
branch: master
commands:
- ./deploy.sh
- gem install onesky-ruby
- ruby oneskyapp_upload.rb
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN