Permalink
Browse files

* Added tagging of releases.

* Prepare test runs on travis-ci.org
* Increased android api level from 4 to 11 to get the code to compile.
  • Loading branch information...
1 parent b4e8df1 commit d8bf1bfabcd76f096fe5ded7f70232cb7e1bd8d0 @donv donv committed Oct 26, 2012
Showing with 31 additions and 2 deletions.
  1. +7 −0 .travis.yml
  2. +14 −0 Gemfile.lock
  3. +9 −1 Rakefile
  4. +1 −1 project.properties
View
@@ -0,0 +1,7 @@
+language: java
+before_install:
+ - wget http://dl.google.com/android/android-sdk_r18-linux.tgz
+ - tar -zxf android-sdk_r18-linux.tgz
+ - export ANDROID_HOME=~/builds/leviwilson/android-travis-ci-example/android-sdk-linux
+ - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
+ - android update sdk --filter 1,2,9 --no-ui --force
View
@@ -0,0 +1,14 @@
+PATH
+ remote: .
+ specs:
+ sqldroid (1.0.0.RC2)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+
+PLATFORMS
+ java
+
+DEPENDENCIES
+ sqldroid!
View
@@ -37,7 +37,15 @@ file GEM_FILE_PKG => JAR_IN_GEM do
FileUtils.mv GEM_FILE, GEM_FILE_PKG
end
+desc 'Tag the project and push the tag to GitHub'
+task :tag do
+ output = `git status --porcelain`
+ raise "Workspace not clean!\n#{output}" unless output.empty?
+ sh "git tag #{SQLDroid::VERSION}"
+ sh "git push --tags"
+end
+
desc 'Release SQLDroid as a Ruby gem to rubygems.org'
-task :release => GEM_FILE_PKG do
+task :release => [:tag, GEM_FILE_PKG] do
sh "gem push #{GEM_FILE_PKG}"
end
View
@@ -10,4 +10,4 @@
# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
-target=android-4
+target=android-11

0 comments on commit d8bf1bf

Please sign in to comment.