Skip to content

Commit

Permalink
Merge pull request #2 from fetzi/feature/state-tests
Browse files Browse the repository at this point in the history
Feature/state tests
  • Loading branch information
fetzi authored Nov 30, 2016
2 parents cf7b1d4 + a870085 commit 6da8a68
Show file tree
Hide file tree
Showing 16 changed files with 1,367 additions and 500 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
vendor/
.idea/
.idea/
build/
coverage/
coverage.xml
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: php

php:
- 5.6
- 7.0
- 7.1

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev

script:
- vendor/bin/phpspec run

after_success:
- bash <(curl -s https://codecov.io/bash)

sudo: false

cache:
directories:
- $HOME/.composer/cache
18 changes: 11 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@
"require": {
"php": ">=5.6",
"illuminate/support": "^5.2",
"illuminate/session": "^5.2",
"psr/cache": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^5.0"
"friendsofphp/php-cs-fixer": "^1.12",
"squizlabs/php_codesniffer": "^2.7",
"phpspec/phpspec": "^2.5",
"henrikbjorn/phpspec-code-coverage": "^2.0"
},
"autoload": {
"psr-4": {
"Fetzi\\State\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Fetzi\\State\\Test\\": "tests"
}
},
"minimum-stability": "stable"
"minimum-stability": "stable",
"scripts": {
"php-cs": "vendor/bin/phpcs src/ --standard=PSR2",
"php-cs-fix": "vendor/bin/php-cs-fixer fix src/",
"test": "vendor/bin/phpspec run"
}
}
Loading

0 comments on commit 6da8a68

Please sign in to comment.