diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 00000000..17820e53 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,3 @@ +service_name: travis-ci +coverage_clover: "test/phpunit.output.clover.xml" +json_path: "coveralls-upload.json" \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 7b3ed691..b8d13237 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,6 @@ php: - 5.5 - 5.4 install: "./bin/install" -script: "./test/run" \ No newline at end of file +script: "./test/run" +after_script: + - php vendor/bin/coveralls \ No newline at end of file diff --git a/composer.json b/composer.json index c92da4d0..8fb4f28e 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,8 @@ "leafo/scssphp": "0.0.*" }, "require-dev": { - "phpunit/phpunit": "4.1.*" + "phpunit/phpunit": "4.1.*", + "satooshi/php-coveralls": "dev-master" }, "prefer-stable": true, diff --git a/test/phpunit.xml b/test/phpunit.xml index f4698d78..08090152 100644 --- a/test/phpunit.xml +++ b/test/phpunit.xml @@ -15,9 +15,12 @@ + + +