diff --git a/.travis.yml b/.travis.yml index c35625b1..9c5e11a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,19 +2,32 @@ language: php php: - 5.2 - - 5.3.3 - 5.3 + - 5.3.3 - 5.4 - 5.5 - 5.6 - hhvm matrix: - allow_failures: - - php: hhvm + allow_failures: + - php: hhvm + +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: - - 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 + email: false \ No newline at end of file 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": "*"