docker-spec 0.15.0 → 0.16.0

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: 56b7e3ee8e9776797d1b297ca9632759584f469b
4
- data.tar.gz: 48884b9e152d93bf6ad4be26db7a7b88bcde7832
3
+ metadata.gz: 468199d42b57545252219d5bfc7a48058921d0d4
4
+ data.tar.gz: eb3cb666a50cb71cd9551b469566befa7ca94ace
5
5
  SHA512:
6
- metadata.gz: 92ded6af790a943ec4f566836c0b2dcbbbd3aa9592a718d6b221bb7027a80778e2d18df0cc5a110ec889f611508a549ad347a6d178098b5134f5caa60de2c326
7
- data.tar.gz: 98d30664d6c55a6ea24765d05617fdbb4a7f96f73d73d5ef812e1f298630525f581308d007d5ec41bad8cc3ffaa829458dae45202144240f34f075917f746820
6
+ metadata.gz: '02689083df095e8cfaf77fce4bb20654454d254dcf00fba5e6af53e2e1b4bec41b570f87f8618e8ea7b3137e312e174cdbd16fe69f0963c1cee44c495521681f'
7
+ data.tar.gz: 32017eb0ed2de213c6fccd88091f82be2e536a9386dede6fc13c9acfbac2240855252c7ab4c780b3695f3c05da91096dd6bd32cf22f652ca8ebd5211dac47328
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
 
11
11
  # Vim files
12
12
  *.sw?
13
+ test/root.tar
data/lib/docker/spec.rb CHANGED
@@ -31,18 +31,18 @@ class DockerSpec
31
31
  @test_failed = false
32
32
 
33
33
  load_config
34
- flock
34
+ grab_flock
35
35
  build_root if @config[:build_root]
36
36
  build_docker_image if @config[:build_image]
37
37
  rspec_configure
38
38
  end
39
39
 
40
- def flock
40
+ def grab_flock
41
41
  @config = DockerSpec.instance.config
42
42
  @lock = File.join('/tmp', @config[:account] + '-' + @config[:name] + '.lock')
43
43
  @f = File.open(@lock, 'w')
44
44
  if (not @f.flock(File::LOCK_EX | File::LOCK_NB))
45
- puts "INFO: Another build is already running"
45
+ puts "INFO: Another build is already running #{@lock}"
46
46
  end
47
47
  @f.flock(File::LOCK_EX)
48
48
  end
@@ -150,7 +150,10 @@ EOF
150
150
  stdout.each { |line| puts line }
151
151
  stderr.each { |line| puts line.red }
152
152
  end
153
- fail("#{build_cmd} failed") if status.exitstatus != 0
153
+ if status.exitstatus != 0
154
+ puts("ERROR: #{build_cmd} failed")
155
+ exit 1
156
+ end
154
157
  end
155
158
 
156
159
  def rspec_configure
@@ -1,5 +1,5 @@
1
1
  module Docker
2
2
  module Spec
3
- VERSION = "0.15.0"
3
+ VERSION = "0.16.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-09 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler