Skip to content
Snippets Groups Projects
.travis.yml 719 B
Newer Older
Ere Maijala's avatar
Ere Maijala committed
language: php
php:
  - 5.4

env:
  - VUFIND_HOME=$PWD VUFIND_LOCAL_DIR=$PWD/local

before_script:
  # Note: locked phpcs to 2.3.4 due to a bug in 2.4.0; can relax restriction after next release.
  - pear install pear/PHP_CodeSniffer-2.3.4
  - pear install pear/Http_Request2
Demian Katz's avatar
Demian Katz committed
  - pear channel-discover pear.phing.info
  - pear install phing/phing
  - composer global require fabpot/php-cs-fixer
  - export PATH="$HOME/.composer/vendor/bin:$PATH"
  - phpenv config-rm xdebug.ini
Ere Maijala's avatar
Ere Maijala committed
  - phpenv rehash

script:
Ere Maijala's avatar
Ere Maijala committed
  - phpunit --stderr --configuration module/VuFind/tests/phpunit.xml
  - phpcs --standard=PEAR --ignore=*/config/*,*/tests/* --extensions=php $PWD/module
Demian Katz's avatar
Demian Katz committed
  - phing php-cs-fixer-dryrun