sauce 3.5.9 → 3.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sauce/config.rb +1 -1
- data/lib/sauce/version.rb +1 -1
- data/lib/tasks/parallel_testing.rb +17 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b574ae156098ead93ce0698d02b2d17c0ab45152
|
|
4
|
+
data.tar.gz: 972a33863163fa8db96580ebcafdf0ecdcf44099
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ccb361ad508b8e789b838e00be84353a9f46e3c81e2e84b2b6b49a921ab47f803592f306315606a0a69adf753a6b16bf1843ddad27a563dc81f2d6f022cfef0
|
|
7
|
+
data.tar.gz: f7a661696b8238af21d51bae0dcd579f04435dfc3b9c6d3ecc157296af9edf485bdf8f225d16342a666ce979eaf2b053d451f4a7365c4b076a3ee78fbfa6d14d
|
data/lib/sauce/config.rb
CHANGED
|
@@ -379,7 +379,7 @@ module Sauce
|
|
|
379
379
|
|
|
380
380
|
paths.each do |path|
|
|
381
381
|
if File.exist? path
|
|
382
|
-
Sauce.
|
|
382
|
+
Sauce.logger.info "Loading Sauce config from yaml file at #{path}"
|
|
383
383
|
conf = YAML.load_file(path)
|
|
384
384
|
return conf.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
|
385
385
|
end
|
data/lib/sauce/version.rb
CHANGED
|
@@ -72,7 +72,11 @@ namespace :sauce do
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
def run_parallel_tests(t, args, command)
|
|
75
|
-
|
|
75
|
+
skip_check = ENV["SAUCE_SKIP_PARALLEL_CHECKS"]
|
|
76
|
+
|
|
77
|
+
warn_of_skipped_parallel_processes if skip_check
|
|
78
|
+
|
|
79
|
+
if((ParallelTests.number_of_running_processes == 0) || skip_check)
|
|
76
80
|
username = ENV["SAUCE_USERNAME"].to_s
|
|
77
81
|
access_key = ENV["SAUCE_ACCESS_KEY"].to_s
|
|
78
82
|
if(!username.empty? && !access_key.empty?)
|
|
@@ -146,3 +150,15 @@ def parse_task_args(test_tool=:rspec, args)
|
|
|
146
150
|
|
|
147
151
|
return return_args
|
|
148
152
|
end
|
|
153
|
+
|
|
154
|
+
def warn_of_skipped_parallel_processes
|
|
155
|
+
puts <<-ENDLINE
|
|
156
|
+
---------------------------------------------------------------------------
|
|
157
|
+
The SAUCE_SKIP_PARALLEL_CHECKS environment variable is truthy. This will
|
|
158
|
+
cause the gem to run regardless of other parallel_tests processes running,
|
|
159
|
+
and may lead to unexpected behaviour including never ending tests.
|
|
160
|
+
|
|
161
|
+
Automatic control of Sauce Connect does NOT work with this option.
|
|
162
|
+
---------------------------------------------------------------------------
|
|
163
|
+
ENDLINE
|
|
164
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sauce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.
|
|
4
|
+
version: 3.5.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dylan Lacey
|
|
@@ -14,7 +14,7 @@ authors:
|
|
|
14
14
|
autorequire:
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
|
-
date: 2015-09-
|
|
17
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: rspec
|