forked from clojure-android/lein-droid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 974 Bytes
/
.travis.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
language: android
sudo: false
cache:
directories:
- $HOME/.m2
before_install:
- mkdir ~/bin
- wget https://raw.github.com/technomancy/leiningen/stable/bin/lein -P ~/bin/
- chmod a+x ~/bin/lein
- mkdir ~/.lein
- cp travis/profiles.clj ~/.lein/
android:
components:
- build-tools-21.1.1
- android-18
- extra-android-m2repository
lein: ~/bin/lein
env:
- PROJECT="sample" PREP="cd sample" LEIN_DROID_PROJECT="" DEPLOY="bash travis/deploy.sh"
- PROJECT="newtest" PREP="lein droid new newtest org.clojure_android.newtest" LEIN_DROID_PROJECT="newtest/project.clj" DEPLOY=""
script:
- $PREP
- DEBUG=1 LEIN_DROID_PROFILES=travis,dev lein with-profile travis,dev do droid build, droid apk
- DEBUG=1 LEIN_DROID_PROFILES=travis,release lein with-profile travis,release do droid build, droid apk
- DEBUG=1 LEIN_DROID_PROFILES=travis,lean lein with-profile travis,lean do clean, droid build, droid apk
after_success:
- cd ..
- $DEPLOY