Skip to content

Commit

Permalink
#262 Add composer test script
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr authored Oct 26, 2016
1 parent b745c15 commit 601d274
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,4 @@ before_install:

install: composer update --prefer-dist --no-interaction

script:
- vendor/bin/phpunit --testsuite unit
- SYMFONY__JWT__ENCODER=default vendor/bin/phpunit --testsuite functional
- SYMFONY__JWT__ENCODER=lcobucci vendor/bin/phpunit --testsuite functional
script: composer test
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The bulk of the documentation is stored in the `Resources/doc/index.md` file in

[Read the documentation](Resources/doc/index.md)

__Note__: For the documentation of the 1.x versions of this bundl

Upgrading
----------

Expand All @@ -30,16 +32,15 @@ Setup the test suite using [Composer](http://getcomposer.org/):

$ composer install

Run it using PHPUnit:
Run it:

$ vendor/bin/phpunit
$ composer test

Contributing
------------

See [CONTRIBUTING](CONTRIBUTING.md) file.


Credits
-------

Expand Down
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,12 @@
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"scripts": {
"test": [
"vendor/bin/phpunit --testsuite unit --colors=always",
"SYMFONY__JWT__ENCODER=default vendor/bin/phpunit --testsuite functional --colors=always",
"SYMFONY__JWT__ENCODER=lcobucci vendor/bin/phpunit --testsuite functional --colors=always"
]
}
}

0 comments on commit 601d274

Please sign in to comment.