Feature/ci (#2190)

squash and merge
This commit is contained in:
Isaac Powell
2021-10-15 13:22:56 +10:00
committed by GitHub
parent 3b34e428cc
commit 7c3e342981
15 changed files with 415 additions and 83 deletions

View File

@@ -23,6 +23,22 @@ RSpec::Core::RakeTask.new(:spec) do |task|
task.rspec_opts = ['--tag ~run_on_browserstack']
end
RSpec::Core::RakeTask.new(:browserstack) do |task|
task.rspec_opts = ['--tag run_on_browserstack']
end
RSpec::Core::RakeTask.new(:bs) do |task|
configs = Dir["spec/support/browserstack/**/*.yml"]
configs.each do |config|
config = config.split('spec/support/browserstack')[1]
ENV['CONFIG_FILE'] = config
puts "\e[45m#{config.upcase}\e[0m"
task.rspec_opts = ['--tag run_on_browserstack']
Rake::Task['browserstack'].invoke
Rake::Task['browserstack'].reenable
end
end
################################
# SSL/TLS certificate
@@ -244,4 +260,4 @@ namespace :db do
task :environment do
require_relative "beef"
end
end
end