Skip to content

Commit

Permalink
Add Travis CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Mar 23, 2017
1 parent 52b84c0 commit cdc06b1
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
language: php

cache:
directories:
- vendor

matrix:
# mark as finished before allow_failures are run
fast_finish: true
include:
- php: 7.0
env: CONFIG="phpunit.xml" COVERGAGE="all"
- php: 7.1
env: CONFIG="phpunit.xml" COVERGAGE="all"

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

# install dependencies
install:
- travis_wait composer install

# execute phpunit as the script command
script:
- ./vendor/bin/phpunit -d memory_limit=-1 --colors -c $CONFIG --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) -F $COVERGAGE

0 comments on commit cdc06b1

Please sign in to comment.