{"action":"created","issue":{"url":"https://api.github.com/repos/sebastianbergmann/php-jenkins-template/issues/123","repository_url":"https://api.github.com/repos/sebastianbergmann/php-jenkins-template","labels_url":"https://api.github.com/repos/sebastianbergmann/php-jenkins-template/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/sebastianbergmann/php-jenkins-template/issues/123/comments","events_url":"https://api.github.com/repos/sebastianbergmann/php-jenkins-template/issues/123/events","html_url":"https://github.com/sebastianbergmann/php-jenkins-template/issues/123","id":152654214,"number":123,"title":"Can't accomplish build with Jenkins, Symfony3 and PHPUnit 5.3","user":{"login":"bamper","id":9008023,"avatar_url":"https://avatars.githubusercontent.com/u/9008023?v=3","gravatar_id":"","url":"https://api.github.com/users/bamper","html_url":"https://github.com/bamper","followers_url":"https://api.github.com/users/bamper/followers","following_url":"https://api.github.com/users/bamper/following{/other_user}","gists_url":"https://api.github.com/users/bamper/gists{/gist_id}","starred_url":"https://api.github.com/users/bamper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamper/subscriptions","organizations_url":"https://api.github.com/users/bamper/orgs","repos_url":"https://api.github.com/users/bamper/repos","events_url":"https://api.github.com/users/bamper/events{/privacy}","received_events_url":"https://api.github.com/users/bamper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-02T21:52:47Z","updated_at":"2016-05-03T06:26:00Z","closed_at":"2016-05-03T06:26:00Z","body":"Hello, \r\n\r\nTrying to learn CI, I got stuck with the following problem:\r\nAnt in command-line gives 'BUILD SUCCESSFUL' message.\r\nWhen I push code to GitHub and run Jenkins on AWS, evth pass except PHPUnit part error:\r\n\r\n> phpunit:\r\n  [phpunit] PHP Warning:  require(/var/lib/jenkins/workspace/mavajob/app/../vendor/autoload.php): failed to open stream: No such file or directory in /var/lib/jenkins/workspace/mavajob/app/autoload.php on line 9\r\n  [phpunit] PHP Stack trace:\r\n  [phpunit] PHP   1. {main}() /usr/bin/phpunit:0\r\n  [phpunit] PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:29\r\n  [phpunit] PHP   3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:106\r\n  [phpunit] PHP   4. PHPUnit_TextUI_Command->handleArguments() /usr/share/php/PHPUnit/TextUI/Command.php:117\r\n  [phpunit] PHP   5. PHPUnit_TextUI_Command->handleBootstrap() /usr/share/php/PHPUnit/TextUI/Command.php:622\r\n  [phpunit] PHP   6. PHPUnit_Util_Fileloader::checkAndLoad() /usr/share/php/PHPUnit/TextUI/Command.php:793\r\n  [phpunit] PHP   7. PHPUnit_Util_Fileloader::load() /usr/share/php/PHPUnit/Util/Fileloader.php:38\r\n  [phpunit] PHP   8. include_once() /usr/share/php/PHPUnit/Util/Fileloader.php:56\r\n  [phpunit] PHP Fatal error:  require(): Failed opening required '/var/lib/jenkins/workspace/mavajob/app/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/lib/jenkins/workspace/mavajob/app/autoload.php on line 9\r\n  [phpunit] PHP Stack trace:\r\n  [phpunit] PHP   1. {main}() /usr/bin/phpunit:0\r\n  [phpunit] PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:29\r\n  [phpunit] PHP   3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:106\r\n  [phpunit] PHP   4. PHPUnit_TextUI_Command->handleArguments() /usr/share/php/PHPUnit/TextUI/Command.php:117\r\n  [phpunit] PHP   5. PHPUnit_TextUI_Command->handleBootstrap() /usr/share/php/PHPUnit/TextUI/Command.php:622\r\n  [phpunit] PHP   6. PHPUnit_Util_Fileloader::checkAndLoad() /usr/share/php/PHPUnit/TextUI/Command.php:793\r\n  [phpunit] PHP   7. PHPUnit_Util_Fileloader::load() /usr/share/php/PHPUnit/Util/Fileloader.php:38\r\n  [phpunit] PHP   8. include_once() /usr/share/php/PHPUnit/Util/Fileloader.php:56\r\n  [phpunit] Result: 255\r\n\r\nphpunit part from build.xml\r\n```xml\r\n    <target name=\"phpunit\"\r\n        unless=\"phpunit.done\"\r\n        depends=\"prepare\"\r\n        description=\"Run unit tests with PHPUnit\">\r\n        <exec executable=\"${phpunit}\" resultproperty=\"result.phpunit\" taskname=\"phpunit\">\r\n            <arg value=\"--configuration\"/>\r\n            <arg path=\"${basedir}/phpunit.xml\"/>\r\n        </exec>\r\n        <property name=\"phpunit.done\" value=\"true\"/>\r\n    </target>\r\n```\r\nphpunit.xml\r\n```xml\r\n<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n         xsi:noNamespaceSchemaLocation=\"http://schema.phpunit.de/4.1/phpunit.xsd\"\r\n         backupGlobals=\"false\"\r\n         backupStaticAttributes=\"false\"\r\n         colors=\"true\"\r\n         convertErrorsToExceptions=\"true\"\r\n         convertNoticesToExceptions=\"true\"\r\n         convertWarningsToExceptions=\"true\"\r\n         processIsolation=\"false\"\r\n         stopOnFailure=\"false\"\r\n         syntaxCheck=\"false\"\r\n         bootstrap=\"app/autoload.php\"\r\n>\r\n    <php>\r\n        <ini name=\"error_reporting\" value=\"-1\" />\r\n        <server name=\"KERNEL_DIR\" value=\"app/\" />\r\n    </php>\r\n\r\n    <testsuites>\r\n        <testsuite name=\"Project Test Suite\">\r\n            <directory>tests</directory>\r\n        </testsuite>\r\n    </testsuites>\r\n\r\n    <filter>\r\n        <whitelist>\r\n            <directory>src</directory>\r\n            <exclude>\r\n                <directory>src/*Bundle/Resources</directory>\r\n                <directory>src/*/*Bundle/Resources</directory>\r\n                <directory>src/*/Bundle/*Bundle/Resources</directory>\r\n            </exclude>\r\n        </whitelist>\r\n    </filter>\r\n</phpunit>\r\n```"},"comment":{"url":"https://api.github.com/repos/sebastianbergmann/php-jenkins-template/issues/comments/216448176","html_url":"https://github.com/sebastianbergmann/php-jenkins-template/issues/123#issuecomment-216448176","issue_url":"https://api.github.com/repos/sebastianbergmann/php-jenkins-template/issues/123","id":216448176,"user":{"login":"bamper","id":9008023,"avatar_url":"https://avatars.githubusercontent.com/u/9008023?v=3","gravatar_id":"","url":"https://api.github.com/users/bamper","html_url":"https://github.com/bamper","followers_url":"https://api.github.com/users/bamper/followers","following_url":"https://api.github.com/users/bamper/following{/other_user}","gists_url":"https://api.github.com/users/bamper/gists{/gist_id}","starred_url":"https://api.github.com/users/bamper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamper/subscriptions","organizations_url":"https://api.github.com/users/bamper/orgs","repos_url":"https://api.github.com/users/bamper/repos","events_url":"https://api.github.com/users/bamper/events{/privacy}","received_events_url":"https://api.github.com/users/bamper/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T06:26:00Z","updated_at":"2016-05-03T06:26:00Z","body":"Solved, I forgot to add composer target."}}