deploy_doc 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deploy_doc/version.rb +1 -1
- data/runner/runner.rb +11 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b23b9bb3ce88224aff53881dd3be4c523604de63
|
4
|
+
data.tar.gz: 7afbd4ffb8d4522a495b56e9d836c690141d9791
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 740cd3e0098312026a17088b4d0671314fec527f076de69809ac658a5d0c27a737c0428520fef9f85f6ce4b2dba320cdfe7c0285f0f7e21dd5c54ff9f57d5b53
|
7
|
+
data.tar.gz: 45497260411ada6ffa2e9a5e1d33826291ab39a2055f07b4afb1f30d16a7efcd9611635713c7713b2a5d21ed7292eeaf3c27a8ab140c76663aa39f65749dddf0
|
data/lib/deploy_doc/version.rb
CHANGED
data/runner/runner.rb
CHANGED
@@ -3,6 +3,10 @@ require 'open3'
|
|
3
3
|
$stdout.sync = true
|
4
4
|
$stderr.sync = true
|
5
5
|
|
6
|
+
# Travis kills jobs after 10 minutes of inactivity on stdout/stderr.
|
7
|
+
# Output something in half that time
|
8
|
+
NO_OUTPUT_TIMEOUT_IN_MIN = 5
|
9
|
+
|
6
10
|
class StepFailed < RuntimeError
|
7
11
|
def initialize(phase, location)
|
8
12
|
super("on lines #{location} in phase #{phase}")
|
@@ -37,7 +41,13 @@ def run_phase(all_steps, name)
|
|
37
41
|
begin
|
38
42
|
read = stdout_stderr.read_nonblock(1024)
|
39
43
|
rescue IO::EAGAINWaitReadable
|
40
|
-
IO.select([stdout_stderr])
|
44
|
+
fds_that_are_ready = IO.select([stdout_stderr], nil, nil, NO_OUTPUT_TIMEOUT_IN_MIN * 60)
|
45
|
+
|
46
|
+
if fds_that_are_ready.nil?
|
47
|
+
# Timeout occured, need to print something to STDOUT to prevent travis from killing this job
|
48
|
+
puts yellow { " | " + bold { "No output for #{NO_OUTPUT_TIMEOUT_IN_MIN} minutes" } }
|
49
|
+
end
|
50
|
+
|
41
51
|
retry
|
42
52
|
rescue EOFError
|
43
53
|
if buffer.length > 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy_doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maarten Hoogendoorn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.6.6
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Test system for your deploment documentation for your application
|