{"action":"created","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/1557","repository_url":"https://api.github.com/repos/Shippable/support","labels_url":"https://api.github.com/repos/Shippable/support/issues/1557/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/1557/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/1557/events","html_url":"https://github.com/Shippable/support/issues/1557","id":88954853,"number":1557,"title":"Shippable does not display phpunit test results...","user":{"login":"pennyarcade","id":8019450,"avatar_url":"https://avatars.githubusercontent.com/u/8019450?v=3","gravatar_id":"","url":"https://api.github.com/users/pennyarcade","html_url":"https://github.com/pennyarcade","followers_url":"https://api.github.com/users/pennyarcade/followers","following_url":"https://api.github.com/users/pennyarcade/following{/other_user}","gists_url":"https://api.github.com/users/pennyarcade/gists{/gist_id}","starred_url":"https://api.github.com/users/pennyarcade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pennyarcade/subscriptions","organizations_url":"https://api.github.com/users/pennyarcade/orgs","repos_url":"https://api.github.com/users/pennyarcade/repos","events_url":"https://api.github.com/users/pennyarcade/events{/privacy}","received_events_url":"https://api.github.com/users/pennyarcade/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shippable/support/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Shippable/support/labels/investigating","name":"investigating","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-17T08:34:35Z","updated_at":"2016-03-03T00:06:52Z","closed_at":"2016-03-03T00:06:52Z","body":"Hello Team,\r\n\r\nI followed the documentation very closely to set up phpunit tests (among others) with shippable using the '--log-junit' option and the '--coverage.xml' option. \r\nI am using the standard image for now.\r\nMy coverage results are displayed correctly and the phpunit output looks ok, too. (Failing as expected)\r\nSadly I can't seem to get the phpunit results displayed in the testresults tab. I tried different filenames and triplechecked output directory and format. Please help.\r\n\r\nAlso my composer update fails when I turn caching on. It gets a permission denied on the cache directory. File permissions are OK, there might be an Issue of files already being open that I can't reproduce locally. I am trying to test a small Symfony application. The intendet result should be saving build time by caching but keeping dependencies up to date.\r\nUpdate: This only happens for the buildin global composer. I have no errors when using my own composer.phar in the project directory.\r\n\r\nThird and least important, I'd like to also display my code sniffer results of PHPMD and PHPCS in the testresults tab. The output is set to xml, too. \r\n\r\nHere is an example build with the above problems : https://app.shippable.com/builds/55812bf06cde2e0c0077a5b7\r\n(Build 43)\r\n\r\nHere is my shippable.yml for reference:\r\n\r\n```yaml\r\ncache: true\r\n\r\n# language setting\r\nlanguage: php\r\n\r\n# php tag\r\nphp:\r\n    # only test one php version until problems are solved.\r\n    #- 5.3\r\n    #- 5.4\r\n    #- 5.5\r\n    - 5.6\r\n    #- hhvm\r\n\r\nbefore_install:\r\n    - cd imgboard\r\n    # make sure the directories are writable (this shouldn't be nessessary and doesn't solve the problem!)\r\n    - sudo chmod 777 -R app/cache\r\n    - sudo chmod 777 -R app/logs\r\n    # update composer (works fine)\r\n    - php ./composer.phar selfupdate\r\n\r\ninstall:\r\n    # update dependencies (fails with obscure permission denied error when using builtin composer)\r\n    # composer update\r\n    - php ./composer.phar update\r\n    - cd ..\r\n\r\nbefore_script:\r\n    # make sure the result folders exist\r\n    - mkdir -p shippable/codecoverage\r\n    - mkdir -p shippable/testresults\r\n    - cd imgboard\r\n\r\nscript:\r\n    # don't fail for code smells (|| true)\r\n    # PHP mess detector HTML output for offline use\r\n    - bin/phpmd src/ html cleancode,codesize,controversial,design,naming,unusedcode --reportfile ../shippable/testresults/phpmd.html --strict || true\r\n    # PHP mess detector xml output to be displayed in testresults tab\r\n    - bin/phpmd src/ xml cleancode,codesize,controversial,design,naming,unusedcode --reportfile ../shippable/testresults/phpmd.xml --strict || true\r\n    # PHP CS text output for offline use only until above works\r\n    - bin/phpcs --report-file=../shippable/testresults/phpcs.txt src/ || true\r\n    # PHPUNIT Tests anc code coverage in different formats for display in testresults tab and for offline use\r\n    - phpunit -c app/ --log-junit ../shippable/testresults/phpunit.xml --coverage-xml ../shippable/codecoverage --coverage-html ../shippable/codecoverage --testdox-html ../shippable/testresults/junit.html\r\n\r\nafter_script:\r\n    # Prove the files were written correctly\r\n    - cd ..\r\n    - ls -a shippable/testresults\r\n    - cat shippable/testresults/junit.xml\r\n    # check in test results for offline use \r\n    - git add shippable\r\n    - git add imgboard/composer.*\r\n    # suppress infinite loop on ci\r\n    - git commit -m 'update test results [skip ci]'\r\n    - git push\r\n\r\nnotifications:\r\n    email: false\r\n\r\n```\r\n\r\nThank you very much for your help.\r\n\r\nMartin"},"comment":{"url":"https://api.github.com/repos/Shippable/support/issues/comments/191502413","html_url":"https://github.com/Shippable/support/issues/1557#issuecomment-191502413","issue_url":"https://api.github.com/repos/Shippable/support/issues/1557","id":191502413,"user":{"login":"manishas","id":2983749,"avatar_url":"https://avatars.githubusercontent.com/u/2983749?v=3","gravatar_id":"","url":"https://api.github.com/users/manishas","html_url":"https://github.com/manishas","followers_url":"https://api.github.com/users/manishas/followers","following_url":"https://api.github.com/users/manishas/following{/other_user}","gists_url":"https://api.github.com/users/manishas/gists{/gist_id}","starred_url":"https://api.github.com/users/manishas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishas/subscriptions","organizations_url":"https://api.github.com/users/manishas/orgs","repos_url":"https://api.github.com/users/manishas/repos","events_url":"https://api.github.com/users/manishas/events{/privacy}","received_events_url":"https://api.github.com/users/manishas/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T00:06:52Z","updated_at":"2016-03-03T00:06:52Z","body":"This should be fixed with our recent build platform upgrade. Please let us know if you still run into this after your account is upgraded."}}