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 +4 -4
- data/.gitignore +1 -0
- data/lib/docker/spec.rb +7 -4
- data/lib/docker/spec/version.rb +1 -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: 468199d42b57545252219d5bfc7a48058921d0d4
|
4
|
+
data.tar.gz: eb3cb666a50cb71cd9551b469566befa7ca94ace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '02689083df095e8cfaf77fce4bb20654454d254dcf00fba5e6af53e2e1b4bec41b570f87f8618e8ea7b3137e312e174cdbd16fe69f0963c1cee44c495521681f'
|
7
|
+
data.tar.gz: 32017eb0ed2de213c6fccd88091f82be2e536a9386dede6fc13c9acfbac2240855252c7ab4c780b3695f3c05da91096dd6bd32cf22f652ca8ebd5211dac47328
|
data/.gitignore
CHANGED
data/lib/docker/spec.rb
CHANGED
@@ -31,18 +31,18 @@ class DockerSpec
|
|
31
31
|
@test_failed = false
|
32
32
|
|
33
33
|
load_config
|
34
|
-
|
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
|
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
|
-
|
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
|
data/lib/docker/spec/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|