From cdc06b1556e446bc75685c6f03e764900f2a239c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Thu, 23 Mar 2017 21:18:37 +0100 Subject: [PATCH] Add Travis CI config --- .travis.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a7b7970 --- /dev/null +++ b/.travis.yml @@ -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