зеркало из https://github.com/github/licensed.git
add tests for non-source files
This commit is contained in:
Родитель
2122338a31
Коммит
6c00e974fa
|
@ -8,6 +8,12 @@ matrix:
|
|||
script: bundle exec rake rubocop build
|
||||
env: NAME="Lint and Build"
|
||||
|
||||
# non-source tests
|
||||
- language: ruby
|
||||
rvm: 2.4.0
|
||||
script: ./script/test core
|
||||
env: NAME="Core"
|
||||
|
||||
# go 1.7 tests
|
||||
- language: go
|
||||
go: "1.7.x"
|
||||
|
|
14
Rakefile
14
Rakefile
|
@ -47,6 +47,20 @@ namespace :test do
|
|||
t.test_files = FileList["test/commands/*_test.rb", "test/sources/#{source}_test.rb"]
|
||||
end
|
||||
end
|
||||
|
||||
namespace :core do
|
||||
task :env do
|
||||
ENV["SOURCE"] = ""
|
||||
end
|
||||
end
|
||||
|
||||
Rake::TestTask.new(:core => "test:core:env") do |t|
|
||||
t.description = "Run non-source tests"
|
||||
t.libs << "test"
|
||||
t.libs << "lib"
|
||||
t.test_files = FileList["test/**/*_test.rb"].exclude("test/fixtures/**/*_test.rb")
|
||||
.exclude("test/sources/*_test.rb")
|
||||
end
|
||||
end
|
||||
|
||||
Rake::TestTask.new(:test) do |t|
|
||||
|
|
Загрузка…
Ссылка в новой задаче