[Groonga-commit] droonga/grn2drn at de99b96 [master] travis: enable

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 7 10:12:45 JST 2014


Kouhei Sutou	2014-02-07 10:12:45 +0900 (Fri, 07 Feb 2014)

  New Revision: de99b96801675949d6160579efd572b4a6230868
  https://github.com/droonga/grn2drn/commit/de99b96801675949d6160579efd572b4a6230868

  Message:
    travis: enable

  Added files:
    .gitignore
    .travis.yml
    test/run-test.rb
  Modified files:
    Gemfile
    Rakefile
    grn2drn.gemspec

  Added: .gitignore (+1 -0) 100644
===================================================================
--- /dev/null
+++ .gitignore    2014-02-07 10:12:45 +0900 (66f8ed3)
@@ -0,0 +1 @@
+/Gemfile.lock

  Added: .travis.yml (+8 -0) 100644
===================================================================
--- /dev/null
+++ .travis.yml    2014-02-07 10:12:45 +0900 (e99f19e)
@@ -0,0 +1,8 @@
+notifications:
+  recipients:
+    - groonga-commit �� lists.sourceforge.jp
+rvm:
+  - 1.9.3
+  - 2.0.0
+  - 2.1.0
+  - ruby-head

  Modified: Gemfile (+2 -0)
===================================================================
--- Gemfile    2014-02-06 19:44:42 +0900 (0220c5d)
+++ Gemfile    2014-02-07 10:12:45 +0900 (e391a94)
@@ -16,3 +16,5 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 source "https://rubygems.org"
+
+gemspec

  Modified: Rakefile (+1 -2)
===================================================================
--- Rakefile    2014-02-06 19:44:42 +0900 (1cb4556)
+++ Rakefile    2014-02-07 10:12:45 +0900 (33b8c39)
@@ -32,6 +32,5 @@ spec = helper.gemspec
 
 desc "Run tests"
 task :test do
-  # No test
-  # ruby("test/run-test.rb")
+  ruby("test/run-test.rb")
 end

  Modified: grn2drn.gemspec (+1 -0)
===================================================================
--- grn2drn.gemspec    2014-02-06 19:44:42 +0900 (aaf0bee)
+++ grn2drn.gemspec    2014-02-07 10:12:45 +0900 (304e65b)
@@ -45,4 +45,5 @@ Gem::Specification.new do |spec|
 
   spec.add_development_dependency("bundler")
   spec.add_development_dependency("rake")
+  spec.add_development_dependency("test-unit")
 end

  Added: test/run-test.rb (+42 -0) 100755
===================================================================
--- /dev/null
+++ test/run-test.rb    2014-02-07 10:12:45 +0900 (32f70e1)
@@ -0,0 +1,42 @@
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2013 Droonga Project
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1 as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+require "pathname"
+
+require "rubygems"
+require "bundler"
+begin
+  Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+  $stderr.puts e.message
+  $stderr.puts "Run `bundle install` to install missing gems"
+  exit e.status_code
+end
+
+require "test-unit"
+
+base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+lib_dir = File.join(base_dir, "lib")
+test_dir = File.join(base_dir, "test")
+
+$LOAD_PATH.unshift(lib_dir)
+$LOAD_PATH.unshift(test_dir)
+
+ARGV.unshift("--max-diff-target-string-size=10000")
+
+exit Test::Unit::AutoRunner.run(true, test_dir)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index