Skip to content

Commit

Permalink
Merge pull request #1 from locomotivecms/add_jruby
Browse files Browse the repository at this point in the history
Add JRuby travis configuration
  • Loading branch information
joel committed Apr 15, 2014
2 parents fee9d77 + 4fade70 commit 7424336
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: ruby
rvm:
- 2.0.0
- 2.1.1
- 2.1.1
- jruby-19mode
18 changes: 9 additions & 9 deletions bin/publish
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]
Publish.new.start

0 comments on commit 7424336

Please sign in to comment.