Codebase list ruby-omniauth-auth0 / run/dc8fd35f-354e-4e72-8a7e-94cb4fbf8599/main Rakefile
run/dc8fd35f-354e-4e72-8a7e-94cb4fbf8599/main

Tree @run/dc8fd35f-354e-4e72-8a7e-94cb4fbf8599/main (Download .tar.gz)

Rakefile @run/dc8fd35f-354e-4e72-8a7e-94cb4fbf8599/mainraw · history · blame

#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

desc 'Run specs'
RSpec::Core::RakeTask.new

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new
rescue LoadError
  task :rubocop do
    warn 'Rubocop is disabled'
  end
end

namespace :sinatra do
  task :start do
    system 'bundle exec shotgun' \
           ' --server=thin --port=3000' \
           ' examples/sinatra/config.ru'
  end
end

desc 'Run specs'
task default: %i[spec rubocop]
task test: :spec
task :guard do
  system 'bundle exec guard'
end