Rakefile in cloudally-0.2.2 vs Rakefile in cloudally-0.3.0
- old
+ new
@@ -1,14 +1,22 @@
# frozen_string_literal: true
-require "bundler/gem_tasks"
-require "rake/testtask"
+require 'bundler/gem_tasks'
+require 'dotenv'
+require 'rake/testtask'
+Dotenv.load
+
+system './bin/cc-test-reporter before-build'
+
Rake::TestTask.new(:test) do |t|
- t.libs << "test"
- t.libs << "lib"
- t.test_files = FileList["test/**/*_test.rb"]
+ t.libs << 'test'
+ t.libs << 'lib'
+ t.test_files = FileList['test/**/*_test.rb']
+ at_exit do
+ system './bin/cc-test-reporter after-build'
+ end
end
-require "rubocop/rake_task"
+require 'rubocop/rake_task'
RuboCop::RakeTask.new
task default: %i[test rubocop]