Skip to content

Instantly share code, notes, and snippets.

@manchuck
Created June 20, 2014 16:56
Show Gist options
  • Save manchuck/4ba10bb8f2c5d71c68cd to your computer and use it in GitHub Desktop.
Save manchuck/4ba10bb8f2c5d71c68cd to your computer and use it in GitHub Desktop.
Travis with Coveralls
coverage_clover: build/logs/clover.xml
src_dir: src
service_name: travis-pro
repo_token: *********************
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