~singpolyma/sgx-jmp

ref: 2f7a1b60192a14c86ef9a1f727ea9369cfedc2c6 sgx-jmp/Rakefile -rw-r--r-- 490 bytes
2f7a1b60Stephen Paul Weber Merge branch 'more-tel-selection-coverage' 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

require "rake/testtask"
require "rubocop/rake_task"

Rake::TestTask.new(:test) do |t|
	ENV["ENV"] = "test"
	ENV["RANTLY_VERBOSE"] = "0" unless ENV["RANTLY_VERBOSE"]
	ENV["RANTLY_COUNT"] = "10" unless ENV["RANTLY_COUNT"]

	t.libs << "test"
	t.libs << "lib"
	t.test_files = FileList["test/**/test_*.rb"]
	t.warning = false
end

RuboCop::RakeTask.new(:lint)

task :entr do
	sh "sh", "-c", "git ls-files | entr -s 'rake test && rubocop'"
end

task default: :test