diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2017-10-29 18:04:09 +0300 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2017-10-29 18:04:09 +0300 |
commit | 92cbb771ade5d1a88494f4630a5d84f269e952f6 (patch) | |
tree | edfcf3c4521d456a1812537cef2db8a2fd55aabf /.travis.yml | |
parent | 9116583b303a97e48ebcf2c8d2cf7c1a09b49090 (diff) |
Add Travis CI configuration
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..911b4debb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: php + +sudo: false + +matrix: + fast_finish: true + include: + - php: 5.4 + - php: 5.5 + - php: 5.6 + - php: 7.0 + - php: 7.1 + env: CODE_COVERAGE=1 + +cache: + directories: + - $HOME/.composer + +install: + - if [ "$CODE_COVERAGE" != 1 ]; then phpenv config-rm xdebug.ini || true; fi + - cp composer.json-dist composer.json + - composer install --prefer-dist + +script: + - if [ "$CODE_COVERAGE" = 1 ]; then CODE_COVERAGE_ARGS="--coverage-text"; fi; vendor/bin/phpunit -c tests/phpunit.xml $CODE_COVERAGE_ARGS + +notifications: + email: false |