Skip to content

Commit

Permalink
simplify test script with composer script
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed May 21, 2018
1 parent bdb74a9 commit f2038d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ before_script:
- mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
- mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot

script:
- composer run-phpunit
- composer run-behat
script: composer test

cache:
directories:
Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
}
],
"scripts": {
"test": [
"@composer run-phpunit",
"@composer run-behat"
],
"run-phpunit": "phpunit --colors=always",
"run-behat": "behat --ansi"
},
Expand Down

0 comments on commit f2038d6

Please sign in to comment.