From 19c6c2962645452811d68941e084b20d0d534339 Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Tue, 16 Jun 2015 15:26:06 -0400 Subject: [PATCH] Enable Travis-CI integration for PHPCS --- .gitignore | 21 +++++++----- .travis.yml | 15 ++++++++ README.md | 2 +- build.xml | 31 ----------------- composer.json | 14 ++++++++ composer.lock | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 137 insertions(+), 41 deletions(-) create mode 100644 .travis.yml delete mode 100644 build.xml create mode 100644 composer.json create mode 100644 composer.lock diff --git a/.gitignore b/.gitignore index b9776c7..8184876 100644 --- a/.gitignore +++ b/.gitignore @@ -3,16 +3,19 @@ *.tar.* # Packages directories # -build/packages -build/packaging -build/releases +/build/packages +/build/packaging +/build/releases # Build # -build/logs +/build/logs -# IDE & System# -.buildpath -.project -.settings +# IDE & System # +/.buildpath +/.project +/.settings .DS_Store -.idea +/.idea + +# Composer Install # +/vendor diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..85f554f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: php + +php: + - 5.3 + - 5.4 + - 5.5 + - 5.6 + - 7.0 + +matrix: + allow_failures: + - php: 7.0 + +script: + - sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then vendor/bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla --ignore=./*tmpl/* administrator/components/com_patchtester; fi" diff --git a/README.md b/README.md index ad3e4d0..1bb60a7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Patch Tester +Patch Tester [![Build Status](https://travis-ci.org/joomla-extensions/patchtester.png)](https://travis-ci.org/joomla-extensions/patchtester) ============= Easily apply changes from pull requests. diff --git a/build.xml b/build.xml deleted file mode 100644 index bc92898..0000000 --- a/build.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..d866225 --- /dev/null +++ b/composer.json @@ -0,0 +1,14 @@ +{ + "name": "joomla/patchtester", + "type": "project", + "description": "Joomla! Patch Testing Component", + "keywords": ["joomla", "cms"], + "homepage": "https://github.com/joomla-extensions/patchtester", + "license": "GPL-2.0+", + "require": { + "php": ">=5.3.10" + }, + "require-dev": { + "squizlabs/php_codesniffer": "~1.5" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..023d41b --- /dev/null +++ b/composer.lock @@ -0,0 +1,95 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "8998a2a462401996430b7fb34fbe53ca", + "packages": [], + "packages-dev": [ + { + "name": "squizlabs/php_codesniffer", + "version": "1.5.6", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "6f3e42d311b882b25b4d409d23a289f4d3b803d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/6f3e42d311b882b25b4d409d23a289f4d3b803d5", + "reference": "6f3e42d311b882b25b4d409d23a289f4d3b803d5", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.1.2" + }, + "suggest": { + "phpunit/php-timer": "dev-master" + }, + "bin": [ + "scripts/phpcs" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-phpcs-fixer": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "CodeSniffer.php", + "CodeSniffer/CLI.php", + "CodeSniffer/Exception.php", + "CodeSniffer/File.php", + "CodeSniffer/Report.php", + "CodeSniffer/Reporting.php", + "CodeSniffer/Sniff.php", + "CodeSniffer/Tokens.php", + "CodeSniffer/Reports/", + "CodeSniffer/CommentParser/", + "CodeSniffer/Tokenizers/", + "CodeSniffer/DocGenerators/", + "CodeSniffer/Standards/AbstractPatternSniff.php", + "CodeSniffer/Standards/AbstractScopeSniff.php", + "CodeSniffer/Standards/AbstractVariableSniff.php", + "CodeSniffer/Standards/IncorrectPatternException.php", + "CodeSniffer/Standards/Generic/Sniffs/", + "CodeSniffer/Standards/MySource/Sniffs/", + "CodeSniffer/Standards/PEAR/Sniffs/", + "CodeSniffer/Standards/PSR1/Sniffs/", + "CodeSniffer/Standards/PSR2/Sniffs/", + "CodeSniffer/Standards/Squiz/Sniffs/", + "CodeSniffer/Standards/Zend/Sniffs/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "http://www.squizlabs.com/php-codesniffer", + "keywords": [ + "phpcs", + "standards" + ], + "time": "2014-12-04 22:32:15" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.3.10" + }, + "platform-dev": [] +}