diff --git a/lib/travis/api/v1/pusher/build/started.rb b/lib/travis/api/v1/pusher/build/started.rb index 329f4d7db..0191d4921 100644 --- a/lib/travis/api/v1/pusher/build/started.rb +++ b/lib/travis/api/v1/pusher/build/started.rb @@ -32,7 +32,8 @@ def build_data 'committer_name' => commit.committer_name, 'committer_email' => commit.committer_email, 'event_type' => request.event_type, - 'matrix' => build.matrix.map { |job| Job.new(job).data }, + 'job_ids' => build.matrix.map(&:id), + 'state' => build.state.to_s } end diff --git a/spec/travis/api/v1/pusher/build/started_spec.rb b/spec/travis/api/v1/pusher/build/started_spec.rb index 0559b9510..2e0826c04 100644 --- a/spec/travis/api/v1/pusher/build/started_spec.rb +++ b/spec/travis/api/v1/pusher/build/started_spec.rb @@ -33,29 +33,6 @@ } end - it 'matrix' do - data['build']['matrix'].first.should == { - 'id' => test.id, - 'repository_id' => build.repository_id, - 'started_at' => json_format_time(Time.now.utc - 1.minute), - 'finished_at' => nil, - 'parent_id' => test.source_id, - 'number' => '2.1', - 'state' => 'started', - 'config' => { 'rvm' => '1.8.7', 'gemfile' => 'test/Gemfile.rails-2.3.x' }, - 'commit' => '62aae5f70ceee39123ef', - 'branch' => 'master', - 'message' => 'the commit message', - 'author_name' => 'Sven Fuchs', - 'author_email' => 'svenfuchs@artweb-design.de', - 'committer_name' => 'Sven Fuchs', - 'committer_email' => 'svenfuchs@artweb-design.de', - 'committed_at' => json_format_time(Time.now.utc - 1.hour), - 'compare_url' => 'https://github.com/svenfuchs/minimal/compare/master...develop', - 'allow_failure' => false - } - end - it 'repository' do data['repository'].should == { 'id' => build.repository_id,