Sha256: 55cf15a4bfdadac2b70395e55a4357f2781d986558fd60d7ba5ab868256acc4a
Contents?: true
Size: 1.21 KB
Versions: 7
Compression:
Stored size: 1.21 KB
Contents
# frozen_string_literal: true require "irb" require "rspec/core/rake_task" require "rubocop/rake_task" BUILD_DIR = "build" task default: :build desc "Start an IRB session" task :console do require_relative "lib/wayfarer" ARGV.clear IRB.start end desc "Build gem" task build: %i[clean] do sh "gem build wayfarer.gemspec --verbose" sh "mkdir #{BUILD_DIR}" sh "mv wayfarer-*.gem #{BUILD_DIR}" end desc "Remove build directory" task :clean do sh "rm -rf #{BUILD_DIR}" end desc "Install gem" task install: %i[build] do sh "gem install #{BUILD_DIR}/*.gem" end namespace :test do desc "Run only isolated tests" RSpec::Core::RakeTask.new :isolated do |task| task.rspec_opts = ["--tag ~selenium --tag ~ferrum --tag ~cli"] end desc "Run only Selenium tests" RSpec::Core::RakeTask.new :selenium do |task| task.rspec_opts = ["--tag selenium"] end desc "Run only Ferrum tests" RSpec::Core::RakeTask.new :ferrum do |task| task.rspec_opts = ["--tag ferrum"] end desc "Run only CLI tests" RSpec::Core::RakeTask.new :cli do |task| task.rspec_opts = ["--tag cli"] end end desc "Run all tests" RSpec::Core::RakeTask.new(:test) RuboCop::RakeTask.new do |task| task.formatters = %w[simple] end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
wayfarer-0.4.6 | Rakefile |
wayfarer-0.4.5 | Rakefile |
wayfarer-0.4.4 | Rakefile |
wayfarer-0.4.3 | Rakefile |
wayfarer-0.4.2 | Rakefile |
wayfarer-0.4.1 | Rakefile |
wayfarer-0.4.0 | Rakefile |