From 5083f3fd602ba5fab6df267261a37b48fd6673b0 Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Tue, 5 Mar 2019 15:33:00 +1030 Subject: Decrypt the ASt test config if available --- activestorage/Rakefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'activestorage/Rakefile') diff --git a/activestorage/Rakefile b/activestorage/Rakefile index 2e86d3d860..0b246564bc 100644 --- a/activestorage/Rakefile +++ b/activestorage/Rakefile @@ -12,6 +12,14 @@ Rake::TestTask.new do |t| t.warning = true end +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 + task :package task default: :test -- cgit v1.2.3