Skip to content

Commit

Permalink
Merge pull request #477 from jhedstrom/474-composer-test
Browse files Browse the repository at this point in the history
Use a 'test' script for running tests.
  • Loading branch information
jhedstrom authored Mar 16, 2018
2 parents 932f297 + 8aabc65 commit 078292e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ before_script:
- sleep 4s

script:
- vendor/bin/parallel-lint src spec features fixtures
- vendor/bin/phpcs --standard=./phpcs-ruleset.xml -p
- vendor/bin/phpcs --standard=./phpcs-drupal-ruleset.xml -p
- vendor/bin/phpspec run -f pretty --no-interaction
- composer test
- vendor/bin/behat -fprogress --strict
- vendor/bin/behat -fprogress --profile=drupal${DRUPAL_VERSION} --strict
# Do not test the Drush profile unless Drupal 7 was installed.
Expand Down
12 changes: 10 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,20 @@
"symfony/event-dispatcher": "~3.0"
},
"require-dev": {
"phpspec/phpspec": "~2.0",
"phpunit/phpunit": "3.7.*",
"phpspec/phpspec": "~2.0 || ~4.0",
"behat/mink-zombie-driver": "^1.2",
"jakub-onderka/php-parallel-lint": "^0.9.2",
"drupal/coder": "^8.2"
},
"scripts": {
"test": [
"composer validate --no-interaction",
"parallel-lint src spec features fixtures",
"phpcs --standard=./phpcs-ruleset.xml -p",
"phpcs --standard=./phpcs-drupal-ruleset.xml -p",
"phpspec run -f pretty --no-interaction"
]
},
"autoload": {
"psr-0": {
"Drupal\\Drupal": "src/",
Expand Down

0 comments on commit 078292e

Please sign in to comment.