{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7775","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7775/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7775/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7775/events","html_url":"https://github.com/travis-ci/travis-ci/issues/7775","id":229378499,"number":7775,"title":"Stages not working with PHP 7, can't solve PHPUnit failure","user":{"login":"tgolen","id":1228807,"avatar_url":"https://avatars1.githubusercontent.com/u/1228807?v=3","gravatar_id":"","url":"https://api.github.com/users/tgolen","html_url":"https://github.com/tgolen","followers_url":"https://api.github.com/users/tgolen/followers","following_url":"https://api.github.com/users/tgolen/following{/other_user}","gists_url":"https://api.github.com/users/tgolen/gists{/gist_id}","starred_url":"https://api.github.com/users/tgolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgolen/subscriptions","organizations_url":"https://api.github.com/users/tgolen/orgs","repos_url":"https://api.github.com/users/tgolen/repos","events_url":"https://api.github.com/users/tgolen/events{/privacy}","received_events_url":"https://api.github.com/users/tgolen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-17T14:47:22Z","updated_at":"2017-05-17T23:15:16Z","closed_at":null,"body":"Hi, I've boiled the issue down to the most basic of scenarios. The following config works fine:\r\n\r\n```\r\njobs:\r\n  include:\r\n    - stage: unit tests\r\n      script: echo one\r\n    - stage: unit tests\r\n      script: echo two\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1228807/26159485/eb7fee38-3adb-11e7-9d29-ecda2efb56cc.png)\r\n\r\nHowever, if I add PHP to the mix, then there is a new stage called \"test\" that shows up and ends up failing. This test doesn't appear to be under my control and I can't continue with building out the rest of our test scripts.\r\n\r\n```\r\njobs:\r\n  include:\r\n    - stage: unit tests\r\n      script: echo one\r\n    - stage: unit tests\r\n      script: echo two\r\nlanguage: php\r\nphp:\r\n    - 7.0\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1228807/26159600/406d0a20-3adc-11e7-86a1-11b7d9602096.png)\r\n\r\nThe failure is:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1228807/26159622/50764cc4-3adc-11e7-8c4e-af64cab7d1cd.png)\r\n\r\nCan you help me figure out how to get this working with PHP? If I don't use stages, and just use a normal matrix, it works just fine."},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/302257116","html_url":"https://github.com/travis-ci/travis-ci/issues/7775#issuecomment-302257116","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/7775","id":302257116,"user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars0.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"created_at":"2017-05-17T23:15:16Z","updated_at":"2017-05-17T23:15:16Z","body":"I checked https://travis-ci.com/Expensify/Web-Expensify/builds/46252313?utm_source=github_status&utm_medium=notification and found that this, too, should have:\r\n\r\n```yaml\r\nscript: ./_tools/ci/$SCRIPT_NAME\r\n```\r\n\r\nAccording to our configuration.\r\n\r\nPlease take a look at https://github.com/Expensify/Web-Expensify/blob/0ff737d74e58ddd10d86ab4da89808e13e184570/.travis.yml.\r\n\r\nhttps://github.com/tgolen/travis-ci-failures/tree/0a7d425b9d777252d508e5a8b298acee2b3061c0 does not have any file to run `phpunit` successfully.\r\n\r\nYes, `language: php` causes the default `script` to be `phpunit`, unless it is overridden (say, `script: ./_tools/ci/$SCRIPT_NAME`).\r\n\r\nAs far as I can tell, everything is working as expected and documented."}}
{"actor":{"display_login":"BanzaiMan"}}