{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2070","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2070/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2070/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2070/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/2070","id":335341414,"node_id":"MDU6SXNzdWUzMzUzNDE0MTQ=","number":2070,"title":"Travis won't work with custom PHP Standard","user":{"login":"gamcoh","id":18115514,"node_id":"MDQ6VXNlcjE4MTE1NTE0","avatar_url":"https://avatars1.githubusercontent.com/u/18115514?v=4","gravatar_id":"","url":"https://api.github.com/users/gamcoh","html_url":"https://github.com/gamcoh","followers_url":"https://api.github.com/users/gamcoh/followers","following_url":"https://api.github.com/users/gamcoh/following{/other_user}","gists_url":"https://api.github.com/users/gamcoh/gists{/gist_id}","starred_url":"https://api.github.com/users/gamcoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamcoh/subscriptions","organizations_url":"https://api.github.com/users/gamcoh/orgs","repos_url":"https://api.github.com/users/gamcoh/repos","events_url":"https://api.github.com/users/gamcoh/events{/privacy}","received_events_url":"https://api.github.com/users/gamcoh/received_events","type":"User","site_admin":false},"labels":[{"id":144368661,"node_id":"MDU6TGFiZWwxNDQzNjg2NjE=","url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Awaiting%20Feedback","name":"Awaiting Feedback","color":"1d76db","default":false},{"id":169372801,"node_id":"MDU6TGFiZWwxNjkzNzI4MDE=","url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Question","name":"Question","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-06-25T10:07:42Z","updated_at":"2018-06-27T08:08:29Z","closed_at":null,"author_association":"NONE","body":"I'm new at this, but I tried to add phpcs with Travis and it won't work. It seems that it's because i made my own PHP Standard from the code of the PEAR Standard.\r\nIs there maybe a way to tell Travis to look into the src/Standard folder in order to see mine\r\n\r\n```\r\n.travis.yml:\r\nscript:\r\n  - ./vendor/bin/phpcs ./\r\n```\r\n\r\n```\r\nTravis build:\r\n$ ./vendor/bin/phpcs ./\r\nERROR: Referenced sniff \"Gampear.Commenting.ClassComment\" does not exist\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/400581640","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/2070#issuecomment-400581640","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/2070","id":400581640,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDU4MTY0MA==","user":{"login":"gamcoh","id":18115514,"node_id":"MDQ6VXNlcjE4MTE1NTE0","avatar_url":"https://avatars1.githubusercontent.com/u/18115514?v=4","gravatar_id":"","url":"https://api.github.com/users/gamcoh","html_url":"https://github.com/gamcoh","followers_url":"https://api.github.com/users/gamcoh/followers","following_url":"https://api.github.com/users/gamcoh/following{/other_user}","gists_url":"https://api.github.com/users/gamcoh/gists{/gist_id}","starred_url":"https://api.github.com/users/gamcoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamcoh/subscriptions","organizations_url":"https://api.github.com/users/gamcoh/orgs","repos_url":"https://api.github.com/users/gamcoh/repos","events_url":"https://api.github.com/users/gamcoh/events{/privacy}","received_events_url":"https://api.github.com/users/gamcoh/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T08:08:29Z","updated_at":"2018-06-27T08:08:29Z","author_association":"NONE","body":"Alright i just did that and it still don't work.\r\n\r\nHere's my error log from Travis\r\n```\r\n$ php --version\r\nPHP 7.2.7 (cli) (built: Jun 23 2018 05:35:37) ( ZTS )\r\nCopyright (c) 1997-2018 The PHP Group\r\nZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies\r\n    with Zend OPcache v7.2.7, Copyright (c) 1999-2018, by Zend Technologies\r\n    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans\r\n\r\n$ composer --version\r\nComposer version 1.6.5 2018-05-04 11:44:59\r\n\r\n$ composer require php-coveralls/php-coveralls '~1.0'\r\n./composer.json has been updated\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nPackage operations: 36 installs, 0 updates, 0 removals\r\n  - Installing symfony/polyfill-ctype (v1.8.0): Downloading (100%)\r\n  - Installing symfony/yaml (v4.1.0): Downloading (100%)\r\n  - Installing symfony/stopwatch (v4.1.1): Downloading (100%)\r\n  - Installing symfony/polyfill-mbstring (v1.8.0): Downloading (40%Downloading (100%)\r\n  - Installing symfony/console (v4.1.1): Downloading (100%)\r\n  - Installing psr/log (1.0.2): Downloading (connecting...)Downloading (100%)\r\n  - Installing symfony/filesystem (v4.1.1): Downloading (100%)\r\n  - Installing symfony/config (v4.1.1): Downloading (100%)\r\n  - Installing symfony/event-dispatcher (v2.8.42): DownloadingDownloading (100%)\r\n  - Installing guzzle/guzzle (v3.9.3): Downloading (100%)\r\n  - Installing php-coveralls/php-coveralls (v1.1.0): Downloading (connecting...)Downloading (100%)\r\n  - Installing sebastian/version (2.0.1): Downloading (100%)\r\n  - Installing sebastian/resource-operations (1.0.0): Downloading (100%)\r\n  - Installing sebastian/recursion-context (2.0.0): Downloading (100%)\r\n  - Installing sebastian/object-enumerator (2.0.1): Downloading (100%)\r\n  - Installing sebastian/global-state (1.1.1): Downloading (100%)\r\n  - Installing sebastian/exporter (2.0.0): Downloading (100%)\r\n  - Installing sebastian/environment (2.0.0): Downloading (connecting...)Downloading (100%)\r\n  - Installing sebastian/diff (1.4.3): Downloading (50%)Downloading (100%)\r\n  - Installing sebastian/comparator (1.2.4): Downloading (100%)\r\n  - Installing phpunit/php-text-template (1.2.1): Downloading (100%)\r\n  - Installing doctrine/instantiator (1.1.0): Downloading (100%)\r\n  - Installing phpunit/phpunit-mock-objects (3.4.4): Downloading (35%Downloading (100%)\r\n  - Installing phpunit/php-timer (1.0.9): Downloading (100%)\r\n  - Installing phpunit/php-file-iterator (1.4.5): Downloading (connecting...)Downloading (100%)\r\n  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (100%)\r\n  - Installing phpunit/php-token-stream (2.0.2): Downloading (100%)\r\n  - Installing phpunit/php-code-coverage (4.0.8): DownloDownloading (100%)\r\n  - Installing webmozart/assert (1.3.0): Downloading (100%)\r\n  - Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)\r\n  - Installing phpdocumentor/type-resolver (0.4.0): Downloading (connecting...)Downloading (100%)\r\n  - Installing phpdocumentor/reflection-docblock (4.3.0): Downloading (100%)\r\n  - Installing phpspec/prophecy (1.7.6): DownloadingDownloading (100%)\r\n  - Installing myclabs/deep-copy (1.8.1): Downloading (100%)\r\n  - Installing phpunit/phpunit (5.7.27): Downloading (100%)\r\n  - Installing squizlabs/php_codesniffer (3.3.0): DownloadDownloading (100%)\r\nsymfony/console suggests installing psr/log-implementation (For using the console logger)\r\nsymfony/console suggests installing symfony/lock ()\r\nsymfony/console suggests installing symfony/process ()\r\nsymfony/event-dispatcher suggests installing symfony/dependency-injection ()\r\nsymfony/event-dispatcher suggests installing symfony/http-kernel ()\r\nguzzle/guzzle suggests installing guzzlehttp/guzzle (Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated.)\r\nphp-coveralls/php-coveralls suggests installing symfony/http-kernel (Allows Symfony integration)\r\nsebastian/global-state suggests installing ext-uopz (*)\r\nphpunit/phpunit suggests installing phpunit/php-invoker (~1.1)\r\nPackage guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.\r\nWriting lock file\r\nGenerating autoload files\r\n\r\n$ composer install\r\nLoading composer repositories with package information\r\nInstalling dependencies (including require-dev) from lock file\r\nNothing to install or update\r\nPackage guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.\r\nGenerating autoload files\r\n\r\n$ git clone -b master --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git /tmp/phpcs\r\nCloning into '/tmp/phpcs'...\r\nremote: Counting objects: 1331, done.\r\nremote: Compressing objects: 100% (1100/1100), done.\r\nremote: Total 1331 (delta 465), reused 598 (delta 179), pack-reused 0\r\nReceiving objects: 100% (1331/1331), 815.65 KiB | 8.50 MiB/s, done.\r\nResolving deltas: 100% (465/465), done.\r\n\r\n$ git clone -b master https://github.com/gamcoh/Gamzer-PHP-Standard.git /tmp/Gamzer-PHP-Standard\r\nCloning into '/tmp/Gamzer-PHP-Standard'...\r\nremote: Counting objects: 185, done.\r\nremote: Compressing objects: 100% (106/106), done.\r\nremote: Total 185 (delta 81), reused 178 (delta 77), pack-reused 0\r\nReceiving objects: 100% (185/185), 79.95 KiB | 15.99 MiB/s, done.\r\nResolving deltas: 100% (81/81), done.\r\n\r\n$ /tmp/phpcs/bin/phpcs --config-set installed_path /tmp/Gamzer-PHP-Standard/Gamzerpear\r\nUsing config file: /tmp/phpcs/CodeSniffer.conf\r\nConfig value \"installed_path\" added successfully\r\n\r\n$ /tmp/phpcs/bin/phpcs -i\r\nThe installed coding standards are MySource, PEAR, PSR1, PSR12, PSR2, Squiz and Zend\r\nThe command \"/tmp/phpcs/bin/phpcs -i\" exited with 0.\r\n\r\n$ ./vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml\r\nPHPUnit 5.7.27 by Sebastian Bergmann and contributors.\r\nError:         No whitelist configured, no code coverage will be generated\r\n....                                                                4 / 4 (100%)\r\nTime: 57 ms, Memory: 4.00MB\r\nOK (4 tests, 4 assertions)\r\nThe command \"./vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml\" exited with 0.\r\n\r\n$ /tmp/phpcs/bin/phpcs . --standard=./phpcs.xml\r\nERROR: Referenced sniff \"Gamzerpear.Commenting.ClassComment\" does not exist\r\nRun \"phpcs --help\" for usage information\r\nThe command \"/tmp/phpcs/bin/phpcs . --standard=./phpcs.xml\" exited with 3.\r\n```\r\n\r\nAs you can see it didn't install my custom standard"}}
{"actor":{"display_login":"gamcoh"}}