Install CodeSniffer using composer
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 7 Jun 2017 17:41:49 +0000 (19:41 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 7 Jun 2017 17:41:49 +0000 (19:41 +0200)
.travis.yml

index 6a1271ca8e32520845168b5f8c45e3c88f8da83b..7aef778f6671e8da1429954f7b05b69b433dbaf7 100644 (file)
@@ -4,7 +4,8 @@ php:
   - 5.6
   - 5.3
 before_install:
-  - pyrus install pear/PHP_CodeSniffer-2.9.0
+  - export PATH="$PATH:$(composer global config bin-dir --absolute)"
+  - composer global require "squizlabs/php_codesniffer=2.*"
   - phpenv rehash
 before_script:
   - git clone --branch=2.1 --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF