diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..65cda7b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: php + +sudo: false + +php: + - 7.1 + - 7.2 + +before_script: + - composer install + +script: + - composer travis + +after_success: + - wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.1/coveralls.phar -O coveralls.phar + - php coveralls.phar -v + +notifications: + email: false diff --git a/README.md b/README.md index d660865..fd8af87 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # graphql-datetime-scalar-php + +[![Build Status](https://travis-ci.org/digiaonline/graphql-datetime-scalar-php.svg?branch=master)](https://travis-ci.org/digiaonline/graphql-datetime-scalar-php) +[![Coverage Status](https://coveralls.io/repos/github/digiaonline/graphql-datetime-scalar-php/badge.svg?branch=master)](https://coveralls.io/github/digiaonline/graphql-datetime-scalar-php?branch=master) + Date, Time and DateTime scalar types for our GraphQL implementation diff --git a/composer.json b/composer.json index 9d9368f..a11e45d 100644 --- a/composer.json +++ b/composer.json @@ -32,6 +32,10 @@ "test": [ "phpunit", "phpstan analyse -l 7 src/" + ], + "travis": [ + "phpunit --coverage-clover build/logs/clover.xml", + "phpstan analyse -l 4 src/" ] } }