Permalink
Browse files

Set up travis

  • Loading branch information...
1 parent bd213ea commit 8fc2b47862f4ea8f2559d1254efa3e4caea1abd4 @dazuma committed Apr 4, 2012
Showing with 68 additions and 8 deletions.
  1. +1 −0 .gitignore
  2. +9 −0 .travis.yml
  3. +44 −0 Gemfile
  4. +11 −2 Rakefile
  5. +0 −1 lib/versionomy/conversion/base.rb
  6. +0 −1 lib/versionomy/conversion/parsing.rb
  7. +0 −1 lib/versionomy/format/base.rb
  8. +3 −3 versionomy.gemspec
View
@@ -2,3 +2,4 @@
/pkg/
.DS_Store
*.rbc
+Gemfile.lock
View
@@ -0,0 +1,9 @@
+language: ruby
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - 1.9.3
+ - jruby-18mode
+ - jruby-19mode
+ - rbx-18mode
+ - rbx-19mode
View
44 Gemfile
@@ -0,0 +1,44 @@
+# -----------------------------------------------------------------------------
+#
+# Versionomy Gemfile
+#
+# This file indicates gems needed for testing.
+#
+# -----------------------------------------------------------------------------
+# Copyright 2012 Daniel Azuma
+#
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# * Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+# * Neither the name of the copyright holder, nor the names of any other
+# contributors to this software, may be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+# -----------------------------------------------------------------------------
+;
+
+
+gem('blockenspiel', '>= 0.4.3')
+gem('psych', '>= 1.2.2')
+
+group(:test) do
+ gem('rake', '>= 0.9.2')
+end
View
@@ -34,6 +34,16 @@
;
+# Requires
+
+require 'rubygems'
+begin
+ gem 'psych'
+ require 'psych'
+rescue ::Gem::LoadError, ::LoadError
+end
+
+
# Load config if present
config_path_ = ::File.expand_path('rakefile_config.rb', ::File.dirname(__FILE__))
@@ -43,7 +53,6 @@ RAKEFILE_CONFIG = {} unless defined?(::RAKEFILE_CONFIG)
# Gemspec
-require 'rubygems'
gemspec_ = eval(::File.read(::Dir.glob('*.gemspec').first))
release_gemspec_ = eval(::File.read(::Dir.glob('*.gemspec').first))
release_gemspec_.version = gemspec_.version.to_s.sub(/\.build\d+$/, '')
@@ -225,4 +234,4 @@ end
# Default task
-task :default => [:clean, :build_rdoc, :build_gem, :test]
+task :default => [:clean, :test]
@@ -36,7 +36,6 @@
module Versionomy
-
module Conversion
@@ -36,7 +36,6 @@
module Versionomy
-
module Conversion
@@ -36,7 +36,6 @@
module Versionomy
-
module Format
View
@@ -1,9 +1,9 @@
# -----------------------------------------------------------------------------
-#
+#
# Versionomy gemspec
-#
+#
# This file contains the gemspec for Versionomy.
-#
+#
# -----------------------------------------------------------------------------
# Copyright 2011-2012 Daniel Azuma
#

0 comments on commit 8fc2b47

Please sign in to comment.