2017-08-12 08:32:15 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-07-31 15:21:22 -04:00
|
|
|
require "bundler/setup"
|
|
|
|
require "bundler/gem_tasks"
|
|
|
|
require "rake/testtask"
|
|
|
|
|
2018-05-23 16:52:15 -04:00
|
|
|
Rake::TestTask.new do |t|
|
|
|
|
t.libs << "app/controllers"
|
|
|
|
t.libs << "test"
|
|
|
|
t.test_files = FileList["test/**/*_test.rb"]
|
|
|
|
t.verbose = true
|
|
|
|
t.warning = true
|
2017-07-31 15:21:22 -04:00
|
|
|
end
|
|
|
|
|
2019-03-05 00:03:00 -05:00
|
|
|
if ENV["encrypted_0fb9444d0374_key"] && ENV["encrypted_0fb9444d0374_iv"]
|
|
|
|
file "test/service/configurations.yml" do
|
|
|
|
system "openssl aes-256-cbc -K $encrypted_0fb9444d0374_key -iv $encrypted_0fb9444d0374_iv -in test/service/configurations.yml.enc -out test/service/configurations.yml -d"
|
|
|
|
end
|
|
|
|
|
|
|
|
task test: "test/service/configurations.yml"
|
|
|
|
end
|
|
|
|
|
2017-09-26 04:56:38 -04:00
|
|
|
task :package
|
|
|
|
|
2017-07-31 15:21:22 -04:00
|
|
|
task default: :test
|