forked from mapzen/open
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
34 lines (31 loc) · 1.23 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
machine:
ruby:
version: jruby-1.7.12
pre:
- curl -O http://apache.osuosl.org/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz && tar xvf apache-maven-3.1.1-bin.tar.gz -C ~/.m2
environment:
PATH: $HOME/.m2/apache-maven-3.1.1/bin:$PATH
M2_HOME: $HOME/.m2/apache-maven-3.1.1/
M2: $HOME/.m2/apache-maven-3.1.1/bin/
ANDROID_HOME: /usr/local/android-sdk-linux
dependencies:
pre:
- echo y | android update sdk --all --no-ui --force --filter "build-tools-20.0.0,platform-tools,android-19"
- scripts/install-dependencies.sh
- sudo apt-get update; sudo apt-get install s3cmd
- printf "[default]\naccess_key = $S3_ACCESS_KEY\n secret_key = $S3_SECRET_KEY" > ~/.s3cfg
- git clone https://github.com/mapzen/apk-s3-lister.git; cd apk-s3-lister; ./upload.sh
test:
override:
- scripts/install.sh
deployment:
all:
branch: /^(?!master).*$/
commands:
- s3cmd put target/*.apk s3://android.mapzen.com/development/$CIRCLE_BRANCH-$CIRCLE_BUILD_NUM.apk
- scripts/upload-release.sh
master:
branch: master
commands:
- s3cmd put target/*.apk s3://android.mapzen.com/latest.apk
- s3cmd put target/*.apk s3://android.mapzen.com/snapshots/master-$CIRCLE_BUILD_NUM.apk