-
Notifications
You must be signed in to change notification settings - Fork 112
/
circle.yml
39 lines (34 loc) · 1.28 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
general:
build_dir: Example
machine:
environment:
ORG_GRADLE_PROJECT_cdvCompileSdkVersion: android-26
ORG_GRADLE_PROJECT_cdvBuildToolsVersion: 26.0.1
node:
version: 6.11.2
java:
version: openjdk8
dependencies:
override:
- npm install -g cordova
# Need to always update these 2 to accept licenses
- echo y | android update sdk --no-ui --all --filter android-25
- echo y | android update sdk --no-ui --all --filter android-26
- if [ ! -e $ANDROID_HOME/build-tools/26.0.1 ]; then echo y | android update sdk --no-ui --all --filter build-tools-26.0.1; fi
- if [ ! -e $ANDROID_HOME/extras/google/m2repository/com/google/firebase/firebase-messaging/11.0.4 ]; then echo y | android update sdk --no-ui --all --filter extra-google-m2repository; fi
cache_directories:
# Android SDK
- "/usr/local/android-sdk-linux/build-tools/26.0.1"
- "/usr/local/android-sdk-linux/extras/google/m2repository"
test:
override:
- cordova platform add android
- cordova plugin add ../intercom-plugin
- cordova build android --verbose -- --gradleArg=--stacktrace
deployment:
master:
tag: /[0-9](\.[0-9]+)+/
owner: intercom
commands:
- echo -e "$NPM_USER\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login
- cd ../intercom-plugin && npm publish