File: Rakefile

package info (click to toggle)
ruby-net-ldap 0.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 640 kB
  • sloc: ruby: 4,583; sh: 53; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 655 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
# -*- ruby encoding: utf-8 -*-
# vim: syntax=ruby

require 'rake/testtask'
require 'rubocop/rake_task'
require 'bundler'

RuboCop::RakeTask.new

Rake::TestTask.new do |t|
  t.libs << 'test'
  t.test_files = FileList['test/**/test_*.rb']
  t.verbose = true
  t.description = 'Run tests, set INTEGRATION=openldap to run integration tests, INTEGRATION_HOST and INTEGRATION_PORT are also supported'
end

desc 'Run tests and RuboCop (RuboCop runs on mri only)'
task ci: Bundler.current_ruby.mri? ? [:test, :rubocop] : [:test]

desc 'Run tests and RuboCop'
task rubotest: [:test, :rubocop]

task default: Bundler.current_ruby.mri? ? [:test, :rubocop] : [:test]