Install CodeSniffer using composer
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 7 Jun 2017 17:39:03 +0000 (19:39 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 8 Jun 2017 14:47:00 +0000 (16:47 +0200)
.travis.yml

index 7f045fff1111f11c3a76257204f957a1e8728fff..c7bedef3e854b5181a2a8379e926aff18aee6e68 100644 (file)
@@ -4,7 +4,8 @@ php:
   - 7.1
   - 5.5
 before_install:
-  - pear install pear/PHP_CodeSniffer
+  - export PATH="$PATH:$(composer global config bin-dir --absolute)"
+  - composer global require "squizlabs/php_codesniffer=3.*"
   - phpenv rehash
 before_script:
   - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF