diff options
author | Matthew Draper <matthew@trebex.net> | 2019-03-05 15:33:00 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2019-03-05 15:33:00 +1030 |
commit | 5083f3fd602ba5fab6df267261a37b48fd6673b0 (patch) | |
tree | edfb79a792588572e265d9f0c090ecc6f1154877 /activestorage/Rakefile | |
parent | a8e6c98b8be62dc2885481dc874f6edaba782ed9 (diff) | |
download | rails-5083f3fd602ba5fab6df267261a37b48fd6673b0.tar.gz rails-5083f3fd602ba5fab6df267261a37b48fd6673b0.tar.bz2 rails-5083f3fd602ba5fab6df267261a37b48fd6673b0.zip |
Decrypt the ASt test config if available
Diffstat (limited to 'activestorage/Rakefile')
-rw-r--r-- | activestorage/Rakefile | 8 |
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 |