commit e2013babf661604eac10287f73ea9c63483eb479
parent 18365be19209008e15b5d05320f5a0007a4980aa
Author: Whyme Lyu <callme5long@gmail.com>
Date: Wed, 27 Mar 2013 09:38:26 +0100
Merge #15: Integrate Travis
commit deb59197d98e831670c71be1a13125f2725a7bcf
Author: Whyme Lyu
Date: Wed Mar 27 09:57:57 2013 +0800
A `rake travis` task
commit ddd76be0d1c88e7778291cff0aae01d35cf14fb7
Author: Whyme Lyu
Date: Thu Mar 21 22:52:07 2013 +0800
Gemfile and .travis.yml to get started
Diffstat:
3 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/.travis.yml b/.travis.yml
@@ -0,0 +1,13 @@
+language: ruby
+
+rvm:
+ - 1.9.3
+ - 1.8.7
+
+before_install:
+ - sudo apt-get update -qq
+ - sudo apt-get install -qq uuid-dev uuid libncursesw5-dev libncursesw5
+
+gemfile: Gemfile.ci
+
+script: bundle exec rake travis
diff --git a/Gemfile.ci b/Gemfile.ci
@@ -0,0 +1,19 @@
+# Until we figure out how to install deps in Travis env in a modern, DRY
+# way, just use this.
+
+source :rubygems
+
+# Original runtime deps
+gem "xapian-full-alaveteli", "~> 1.2"
+gem "ncursesw"
+gem "rmail", ">= 0.17"
+gem "highline"
+gem "trollop", ">= 1.12"
+gem "lockfile"
+gem "mime-types", "~> 1"
+gem "gettext"
+
+# required by Travis
+group :development, :test do
+ gem "rake"
+end
diff --git a/Rakefile b/Rakefile
@@ -76,3 +76,4 @@ Gem::PackageTask.new(spec) do |pkg|
end
task :tarball => ["pkg/sup-#{SUP_VERSION}.tgz"]
+task :travis => [:test, :gem]