Skip to content

Commit

Permalink
travis, coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ueaner committed Mar 2, 2018
1 parent 363ed48 commit 04d0d56
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
dist: trusty

language: php

env:
global:
- COMPOSER_ARGS="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
- DEPS="phpunit/phpunit squizlabs/php_codesniffer php-coveralls/php-coveralls"

cache:
directories:
- $HOME/.composer/cache

php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
- hhvm

matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: nightly

install:
- composer install $COMPOSER_ARGS

before_script:
- composer require $COMPOSER_ARGS $DEPS

script:
- php vendor/bin/phpunit
- php vendor/bin/phpcs

after_script:
- if [ -f ./build/logs/clover.xml ]; then php vendor/bin/php-coveralls -v; fi

0 comments on commit 04d0d56

Please sign in to comment.