{"action":"closed","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1975","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1975/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1975/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1975/events","html_url":"https://github.com/travis-ci/travis-ci/issues/1975","id":27725357,"number":1975,"title":"Reducing build matrix when using coverity_scan addon","user":{"login":"waja","id":1449568,"avatar_url":"https://avatars.githubusercontent.com/u/1449568?v=3","gravatar_id":"","url":"https://api.github.com/users/waja","html_url":"https://github.com/waja","followers_url":"https://api.github.com/users/waja/followers","following_url":"https://api.github.com/users/waja/following{/other_user}","gists_url":"https://api.github.com/users/waja/gists{/gist_id}","starred_url":"https://api.github.com/users/waja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waja/subscriptions","organizations_url":"https://api.github.com/users/waja/orgs","repos_url":"https://api.github.com/users/waja/repos","events_url":"https://api.github.com/users/waja/events{/privacy}","received_events_url":"https://api.github.com/users/waja/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-02-17T15:15:01Z","updated_at":"2015-07-23T15:46:51Z","closed_at":"2015-07-23T15:46:51Z","body":"We are using gcc and clang as compiler and so we have (actual) 2 jobs for each build. We also want to use the coverity_scan addon, so normally we would have 2 coverity jobs for each build, which is a waste of resources.\r\n\r\nWe tried to avoid that with adjusting (https://github.com/waja/monitoring-plugins/blob/ef46dabffaa3a7ca60faf4e9eac79b4245265549/.travis.yml) the build matrix:\r\n\r\nmatrix:\r\n  exclude:\r\n    - compiler: clang\r\n      env: COVERITY_SCAN_BRANCH=1\r\n\r\nAs $COVERITY_SCAN_BRANCH seems not available when the matrix is evaluated, both jobs are running when the coverity_scan addon is triggered.\r\n\r\nIt would be very nice (at least for the coverity people) to be able to reduce the build matrix when the coverity_scan addon is triggered."}}