Skip to content

Commit b0ca55d

Browse files
committed
composer: Add test script
For easier running of scripts. Now we can just execute `composer test`.
1 parent d3581bf commit b0ca55d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ php:
1818
before_script:
1919
- composer install --dev
2020

21-
script: vendor/bin/simple-phpunit --coverage-clover=coverage.clover
21+
script: composer test -- --coverage-clover=coverage.clover
2222

2323
after_script:
2424
- wget https://scrutinizer-ci.com/ocular.phar

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,8 @@
3333
"branch-alias": {
3434
"dev-master": "1.0.x-dev"
3535
}
36+
},
37+
"scripts": {
38+
"test": "vendor/bin/simple-phpunit"
3639
}
3740
}

0 commit comments

Comments
 (0)