lib/evrone/ci/router/build_matrix.rb in evrone-ci-router-0.2.0.pre19 vs lib/evrone/ci/router/build_matrix.rb in evrone-ci-router-0.2.0.pre20
- old
+ new
@@ -28,9 +28,10 @@
end
end
def attributes_for_new_travises_with_merged_env
attrs = attributes_for_new_travises
+ attrs = [{}] if attrs.empty?
attrs.map do |a|
e = a["env"]
a["env"] = {
"global" => Array(e) + travis.global_env,
"matrix" => e