Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Add Travis CI build for the sample project
Browse files Browse the repository at this point in the history
The build will compile the sample project and create an APK. We
add a new profile in the sample project configuration to define
where the Android SDK is located in the Travis CI system.
  • Loading branch information
nablaa committed Aug 30, 2015
1 parent 0fa7a26 commit 2838eca
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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

android:
components:
- build-tools-21.1.1
- android-18
- extra-android-m2repository

lein: ~/bin/lein

script:
- cd sample
- DEBUG=1 lein with-profile travis droid build
- DEBUG=1 lein with-profile travis droid apk
10 changes: 10 additions & 0 deletions sample/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@

:profiles {:default [:dev]

;; This is a profile for Travis CI build
:travis
[:android-common :android-user
{:dependencies [[org.clojure/tools.nrepl "0.2.10"]]
:target-path "target/debug"
:android {:aot :all-with-unused
:rename-manifest-package "test.leindroid.sample.debug"
:manifest-options {:app-name "Android-Clojure (debug)"}
:sdk-path "/usr/local/android-sdk/"}}]

:dev
[:android-common :android-user
;; The above profiles can be specified in your profiles.clj and
Expand Down

0 comments on commit 2838eca

Please sign in to comment.