diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b55c9b9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: php + +sudo: false + +cache: + directories: + - $HOME/.composer/cache + +php: + - 5.6 + - 7.0 + +branches: + only: + - /^dev-.*$/ + - phpunit-support + +before_install: + - travis_retry composer self-update + +install: + - travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction + +script: + - composer test-ci \ No newline at end of file diff --git a/composer.json b/composer.json index f643d4a..012daf7 100644 --- a/composer.json +++ b/composer.json @@ -32,5 +32,10 @@ "psr-4": { "Tests\\": "tests/" } + }, + "scripts": { + "test": "vendor/bin/phpunit", + "test-ci": "vendor/bin/phpunit --coverage-clover report/coverage.xml", + "test-coverage": "vendor/bin/phpunit --coverage-html report/html" } } diff --git a/phpunit.xml b/phpunit.xml index fb3d442..891c4ea 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -15,17 +15,6 @@ ./tests/* - - - - - src