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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad636b7c3d04d48cb1348f0a4a51144855b15e6c
4
- data.tar.gz: 3e2d63ba1d5507ce621a87693ee2316908dfba93
3
+ metadata.gz: b23b9bb3ce88224aff53881dd3be4c523604de63
4
+ data.tar.gz: 7afbd4ffb8d4522a495b56e9d836c690141d9791
5
5
  SHA512:
6
- metadata.gz: 31ddd23250904ebfed56bce18dc65402115ddcc7a0be2cc310e3bf30b9cb733797c47ff17ba243d59f0c7070bcb25754d6539641ddae684edccba085d96ba218
7
- data.tar.gz: 912167c2b23c5d4fc57c557ec7f229e125c26fdff5a7d5bf50a43f97e96b33ff6bf1436b24aa603141941b6849f8489c03f17e6555d7bd7464f8ef66c8d8beac
6
+ metadata.gz: 740cd3e0098312026a17088b4d0671314fec527f076de69809ac658a5d0c27a737c0428520fef9f85f6ce4b2dba320cdfe7c0285f0f7e21dd5c54ff9f57d5b53
7
+ data.tar.gz: 45497260411ada6ffa2e9a5e1d33826291ab39a2055f07b4afb1f30d16a7efcd9611635713c7713b2a5d21ed7292eeaf3c27a8ab140c76663aa39f65749dddf0
@@ -1,3 +1,3 @@
1
1
  module DeployDoc
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2016-12-03 00:00:00.000000000 Z
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.5.1
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