lib/evrone/ci/router/travis.rb in evrone-ci-router-0.2.0.pre3 vs lib/evrone/ci/router/travis.rb in evrone-ci-router-0.2.0.pre4
- old
+ new
@@ -23,13 +23,15 @@
end
def matrix_keys
@matrix_keys ||=
BuildMatrix::KEYS.inject([]) do |a,k|
- val = send(k)
+ k_method, k_name = k.split(":")
+ k_name ||= k_method
+ val = send(k_method)
unless val.empty?
- a << val.map{|v| "#{k}:#{v}" }
+ a << val.map{|v| "#{k_name}:#{v}" }
end
a
end.flatten.sort
end
@@ -40,9 +42,13 @@
def to_script_builder
ScriptBuilder.new(self)
end
def env
+ attributes["env"]
+ end
+
+ def matrix_env
attributes["env"]["matrix"]
end
def global_env
attributes["env"]["global"]