build-buddy 1.10.0 → 1.11.0
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/build_buddy.rb +1 -1
- data/lib/build_buddy/builder.rb +11 -8
- 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: c3ac2498d85759e142f61aead4aebf0968721a4e
|
|
4
|
+
data.tar.gz: 6af814ee68ac2f59f23b84eeef9ca9bfd454707c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c04cbb95121ccd2dafc9d0445a7c03e94999e48dfdc8421f4f89c7dea5d857446208e193f51451370a2917964032f031b0dc0d5798884b99abc87f7d7f1918ea
|
|
7
|
+
data.tar.gz: c9f08e085110a8a733032bc01a68d824a477f7d5b3149c0c5a968a64b085c057b92961a4602e7f35428702a306434670b5841b28afc6f32d02dc461c521b7289
|
data/lib/build_buddy.rb
CHANGED
data/lib/build_buddy/builder.rb
CHANGED
|
@@ -88,7 +88,7 @@ git checkout pr/$GIT_PULL_REQUEST
|
|
|
88
88
|
when :branch
|
|
89
89
|
build_root_dir = expand_vars(Config.branch_root_dir)
|
|
90
90
|
env.merge!({
|
|
91
|
-
"GIT_BRANCH" =>
|
|
91
|
+
"GIT_BRANCH" => build_data.branch.to_s,
|
|
92
92
|
"BUILD_SCRIPT" => Config.branch_build_script
|
|
93
93
|
})
|
|
94
94
|
build_script += %q(
|
|
@@ -151,14 +151,17 @@ source ${BUILD_SCRIPT}
|
|
|
151
151
|
@build_data.exit_code = (status.exited? ? status.exitstatus : -1)
|
|
152
152
|
|
|
153
153
|
# Collect any data written to the build metrics YAML file
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
154
|
+
metrics = {}
|
|
155
|
+
|
|
156
|
+
if File.exist?(@metrics_tempfile.path)
|
|
157
|
+
metrics_yaml = File.read(@metrics_tempfile.path)
|
|
158
|
+
begin
|
|
159
|
+
metrics = Psych.load_stream(metrics_yaml).reduce({}, :merge)
|
|
160
|
+
rescue Psych::SyntaxError => ex
|
|
161
|
+
error "There was a problem collecting build metrics: #{ex.message}\n#{metrics_yaml}"
|
|
162
|
+
end
|
|
161
163
|
end
|
|
164
|
+
|
|
162
165
|
@build_data.metrics = metrics
|
|
163
166
|
|
|
164
167
|
info "Process #{status.pid} #{@build_data.termination_type == :killed ? 'was terminated' : "exited (#{@build_data.exit_code})"}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: build-buddy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Lyon-smith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: timers
|