File: Rakefile

package info (click to toggle)
ruby-omniauth-auth0 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 144 kB
  • sloc: ruby: 397; makefile: 6
file content (30 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
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
#!/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
    $stderr.puts '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: [:spec, :rubocop]
task test: :spec
task :guard do
  system 'bundle exec guard'
end