Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Add Travis CI configuration and README badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Stenvall committed Sep 19, 2018
1 parent 8eec2c7 commit 2a4aada
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .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
4 changes: 4 additions & 0 deletions 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
4 changes: 4 additions & 0 deletions composer.json
Expand Up @@ -32,6 +32,10 @@
"test": [
"phpunit",
"phpstan analyse -l 7 src/"
],
"travis": [
"phpunit --coverage-clover build/logs/clover.xml",
"phpstan analyse -l 4 src/"
]
}
}

0 comments on commit 2a4aada

Please sign in to comment.