Sha256: 33a45a358daab2dfc4789d3f822084ce74ef9fd721bcaf02e8e4e4374d0e428d
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'Locomotive' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.md') rdoc.rdoc_files.include('lib/**/*.rb') end load 'rails/tasks/statistics.rake' require 'bundler/gem_tasks' begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) rescue LoadError end # === Travis === task :travis do # FIXME: CHROMEDRIVER_VERSION & RAILS_EAGER_LOADER env variables are defined # in the TravisCI settings page of the repository locomotivecms/engine puts "Install CHROMEDRIVER #{ENV['CHROMEDRIVER_VERSION']}" system('bundle binstubs chromedriver-helper') system("./bin/chromedriver-update #{ENV['CHROMEDRIVER_VERSION']}") puts "Install Yarn packages" system('yarn install') puts "Precompile assets first to avoid potential time outs" system("cd spec/dummy && bundle exec rails assets:precompile && cd ..") puts "Starting to run RSpec..." system("export DISPLAY=:99.0 && bundle exec rspec spec") raise "RSpec failed!" unless $?.exitstatus == 0 end task default: :spec
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms-4.0.0.rc0 | Rakefile |
locomotivecms-4.0.0.alpha3 | Rakefile |