diff --git a/.travis.yml b/.travis.yml index d32b8d1..22c1f16 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: ruby rvm: - 2.0.0 - - 2.1.1 \ No newline at end of file + - 2.1.1 + - jruby-19mode \ No newline at end of file diff --git a/bin/publish b/bin/publish index f615405..51d6987 100755 --- a/bin/publish +++ b/bin/publish @@ -6,8 +6,14 @@ require_relative '../lib/common' class Publish - def start version, rvm=false - system "rvm use #{rvm}" + def start + # if File.exists? '.ruby-version' + # cmd = <<-CMD + # rvm use `cat .ruby-version`@`cat .ruby-gemset` --create + # CMD + # system cmd + # end + # exit 1 system "bundle && bundle exec rspec" system "gem build locomotivecms_common.gemspec" @@ -19,10 +25,4 @@ class Publish end -if ARGV.length != 1 # or !ARGV[0].match(/\d{1,3}.\d{1,3}.\d{1,3}/) - puts 'HELP: ' - puts '$ bin/publish [ruby-2.1.1@common]' - exit 0 -end - -Publish.new.start ARGV[0] \ No newline at end of file +Publish.new.start \ No newline at end of file