Skip to content

Commit

Permalink
Added Travis and Codecov configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioBlazek committed Jul 25, 2016
1 parent 1f1eefa commit 7b28024
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
language: php

cache:
directories:
- vendor

matrix:
# mark as finished before allow_failures are run
fast_finish: true
include:
- php: 5.5
- php: 5.6
- php: 7.0

# test only master (+ pull requests)
branches:
only:
- master

# make sure to update composer to latest available version
before_install:
- phpenv config-add travis.php.ini

# install dependencies
install:
- travis_wait composer install

# execute phpunit as the script command
script:
- ./vendor/bin/phpunit -d memory_limit=-1 --colors -c phpunit.xml --coverage-clover=coverage.xml

# disable mail notifications
notification:
email: false

# reduce depth (history) of git checkout
git:
depth: 30

# we don't need sudo
sudo: false

# send coverage to codecov.io
after_success:
- bash <(curl -s https://codecov.io/bash)
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
patch: false
changes: false
project:
default:
target: auto
comment: off
3 changes: 3 additions & 0 deletions travis.php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[PHP]

memory_limit = 2G

0 comments on commit 7b28024

Please sign in to comment.