Created
June 20, 2014 16:56
-
-
Save manchuck/4ba10bb8f2c5d71c68cd to your computer and use it in GitHub Desktop.
Travis with Coveralls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coverage_clover: build/logs/clover.xml | |
src_dir: src | |
service_name: travis-pro | |
repo_token: ********************* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
cache: | |
apt: true | |
directories: | |
- ~/.composer/ | |
services: | |
- mongodb | |
php: | |
- "5.4" | |
- "5.5" | |
notifications: | |
email: | |
- chuck@manchuck.com | |
before_script: | |
- mkdir -p build/logs | |
- pecl install -f mongo-1.4.1 | |
- composer install --dev | |
script: | |
- (cd test ; ../vendor/bin/phpunit -c phpunit.xml --coverage-clover ../build/logs/clover.xml) | |
- (cd src ; ../vendor/bin/phpcs --standard=PSR2 .) | |
- (cd src ; ../vendor/bin/phpmd . text "codesize,naming,unusedcode") | |
after_script: | |
- ls build/logs | |
- php vendor/bin/coveralls -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment