-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
32 lines (28 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
27
28
29
30
31
32
general:
branches:
only:
- master
machine:
java:
version: oraclejdk8
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
pre:
# Downloading necessary Android SDK libraries
- if ! $(grep -q "Revision=25.1.1" $ANDROID_HOME/tools/source.properties); then echo y | android update sdk -u -a -t "tools"; fi
- if [ ! -e $ANDROID_HOME/build-tools/23.0.3 ]; then echo y | android update sdk -u -a -t "build-tools-23.0.3"; fi
- echo y | android update sdk --no-ui --all --filter extra-m2-repository
- echo y | android update sdk --no-ui --all --filter extra-android-support
# Inserting bintray credentials
- sed -i "s/BINTRAY_USER/$BINTRAY_USER/" emoji-replacer/build.gradle
- sed -i "s/BINTRAY_API_KEY/$BINTRAY_API_KEY/" emoji-replacer/build.gradle
cache_directories:
- ~/.android
- /usr/local/android-sdk-linux/tools
- /usr/local/android-sdk-linux/build-tools/23.0.3
# After tests passed, build the release artifacts
test:
post:
- ./gradlew clean lint assemble bintrayUpload
- cp -r emoji-replacer/build/outputs $CIRCLE_ARTIFACTS