-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
38 lines (28 loc) · 787 Bytes
/
Rakefile
File metadata and controls
38 lines (28 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Avoid contaminating ENV with lots of BUNDLER_ variables
# require 'bundler/setup'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
namespace :travis do
desc "Run tests across different environments, simulating Travis"
task :test do
require_relative './test/travis_test'
TravisTest.run!
end
desc "Report on which versions of Ruby are installed"
task :versions do
require_relative './test/travis_test'
TravisTest.validate_ruby_versions!
end
end
task default: :test
namespace :test do
task :rails do
ENV['BUNDLE_GEMFILE'] = File.expand_path('./test/gemfiles/Gemfile.rails-6.1.x', __dir__)
require 'bundler/setup'
p Rails
end
end