From 46dfaa9f8a4ea6240d24c447a5e7712d6c5a8340 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 11 May 2015 12:30:15 +0200 Subject: [PATCH 1/2] Travis CI : Support for PSR-2 test --- .travis.yml | 16 +++++++++++++--- composer.json | 5 ++++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c35625b1..01dece57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,11 +10,21 @@ php: - hhvm matrix: - allow_failures: - - php: hhvm + allow_failures: + - php: hhvm + +before_script: + ## Packages + - sudo apt-get -qq update > /dev/null + ## Composer + - composer self-update + - composer install --prefer-source --dev script: - - phpunit -c ./unitTests/ + ## PHP_CodeSniffer + - ./vendor/bin/phpcs Classes/ unitTests/ --standard=PSR2 -n --ignore=Classes/PHPExcel/Shared/PCLZip + ## PHPUnit + - phpunit -c ./unitTests/ notifications: email: false diff --git a/composer.json b/composer.json index ff18cb84..da7faa0e 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, { "name": "Franck Lefevre", - "homepage": "http://blog.rootslabs.net" + "homepage": "http://rootslabs.net" }, { "name": "Erik Tilt" @@ -26,6 +26,9 @@ "ext-xml": "*", "ext-xmlwriter": "*" }, + "require-dev": { + "squizlabs/php_codesniffer": "1.*" + }, "recommend": { "ext-zip": "*", "ext-gd2": "*" From bb13357dcb58a1ce4d5c135629ce865715df35f3 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 11 May 2015 12:58:26 +0200 Subject: [PATCH 2/2] Travis CI : Support for PSR-2 test --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 01dece57..5c963156 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ language: php php: - 5.2 - - 5.3.3 - 5.3 + - 5.3.3 - 5.4 - 5.5 - 5.6 @@ -17,8 +17,11 @@ before_script: ## Packages - sudo apt-get -qq update > /dev/null ## Composer + ##@todo Remove when support of 5.2 will be dropped + - phpenv global 5.3 - composer self-update - composer install --prefer-source --dev + - phpenv global "$TRAVIS_PHP_VERSION" script: ## PHP_CodeSniffer