From 287920ca7d06c8f51198ec750d65ba703835b257 Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Wed, 6 Feb 2019 01:20:06 +1030 Subject: Respect ENV variables when finding DBs etc for the test suite If they're not set we'll still fall back to localhost, but this makes it possible to run the tests against a remote Postgres / Redis / whatever. --- actioncable/Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actioncable/Rakefile') diff --git a/actioncable/Rakefile b/actioncable/Rakefile index 35de50f05a..121037844d 100644 --- a/actioncable/Rakefile +++ b/actioncable/Rakefile @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "base64" require "rake/testtask" require "pathname" require "open3" @@ -25,7 +26,8 @@ namespace :test do end task :integration do - system("yarn test") || raise("Failures") + system(Hash[*Base64.decode64(ENV.fetch("ENCODED", "")).split(/[ =]/)], "yarn", "test") + exit($?.exitstatus) unless $?.success? end end -- cgit v1.2.3