Sha256: fd4d5dadf0d07b70991f4fb3df1c29d5969b6726e2249ba81d451a382462d8ef

Contents?: true

Size: 916 Bytes

Versions: 1

Compression:

Stored size: 916 Bytes

Contents

#!/usr/bin/env ruby

if ENV['RAILS_VERSION'] =~ /^6.0/
  puts "Testing Rails 6.0"
  exit system('cd spec/dummy_6.0 && bundle install --without debug && rails db:reset && cd ../../ && bundle exec rspec spec')
elsif ENV['RAILS_VERSION'] =~ /^5/
  puts "Testing Rails #{ENV['RAILS_VERSION']}"
  exit system("cd spec/dummy_#{ENV['RAILS_VERSION']} && bundle install --without debug && rails db:reset && cd ../../ && bundle exec rspec spec")
elsif ENV['RAILS_VERSION'] =~ /^4/
  puts "Testing Rails #{ENV['RAILS_VERSION'].to_i}"
  exit system("cd spec/dummy_#{ENV['RAILS_VERSION'].to_i} && bundle install --without debug && bundle exec rake db:create && bundle exec rake db:migrate && cd ../../ && bundle exec rspec spec")
else
  puts "Testing Rails 3"
  exit system('cd spec/dummy && bundle install --without debug && bundle exec rake db:create && bundle exec rake db:migrate && cd ../../ && bundle exec rspec spec')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axlsx_rails-0.6.0 spec/ci.rb