aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2019-03-05 15:33:00 +1030
committerMatthew Draper <matthew@trebex.net>2019-03-05 15:33:00 +1030
commit5083f3fd602ba5fab6df267261a37b48fd6673b0 (patch)
treeedfb79a792588572e265d9f0c090ecc6f1154877 /activestorage
parenta8e6c98b8be62dc2885481dc874f6edaba782ed9 (diff)
downloadrails-5083f3fd602ba5fab6df267261a37b48fd6673b0.tar.gz
rails-5083f3fd602ba5fab6df267261a37b48fd6673b0.tar.bz2
rails-5083f3fd602ba5fab6df267261a37b48fd6673b0.zip
Decrypt the ASt test config if available
Diffstat (limited to 'activestorage')
-rw-r--r--activestorage/Rakefile8
1 files changed, 8 insertions, 0 deletions
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