Skip to content

Commit

Permalink
Added a Travis CI config file
Browse files Browse the repository at this point in the history
  • Loading branch information
waltertamboer committed Sep 3, 2017
1 parent 84a70d8 commit b970da6
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: php

php:
- 7.1

sudo: false

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

## Cache composer
cache:
directories:
- $HOME/.composer/cache

before_script:
- travis_retry composer self-update
- travis_retry composer install

script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"php": "^7.1"
},
"require-dev": {
"phpunit/phpunit": "^6.3"
"phpunit/phpunit": "^6.3",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
53 changes: 52 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b970da6

Please sign in to comment.