silverstripe-framework/.travis.yml
Sam Minnee b7e7c165ff NEW Amend Travis build to run a simple PHP_CodeSniffer test.
At this stage, the test just checks line-length and line-endings, but previous commits have ensured that framework actually passes those tests.  We can add more tests as we actually correct the code to pass those tests, and grow the test suite, as we had for unit tests.
2012-09-30 17:28:46 +13:00

31 lines
510 B
YAML

language: php
php:
- 5.3
- 5.4
env:
- TESTDB=MYSQL
- TESTDB=PGSQL
matrix:
exclude:
- php: 5.4
env: TESTDB=PGSQL
- php: 5.4
env: TESTDB=SQLITE
before_script:
- pear install pear/PHP_CodeSniffer
- phpenv rehash
- ./tests/travis/before_script ~/builds/ss
- cd ~/builds/ss
script:
- phpunit -c phpunit.xml.dist
- phpcs --encoding=utf-8 --tab-width=4 --standard=framework/tests/phpcs -np framework
notifications:
irc:
channels:
- "irc.freenode.org#silverstripe"