add tests for non-source files

This commit is contained in:
Jon Ruskin 2019-08-22 10:12:49 -07:00
Родитель 2122338a31
Коммит 6c00e974fa
2 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

@ -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"

Просмотреть файл

@ -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|