Skip to content

Commit 15714a1

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

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
@@ -12,7 +12,7 @@ php:
1212
before_script:
1313
- composer install --dev
1414

15-
script: vendor/bin/simple-phpunit --coverage-clover=coverage.clover
15+
script: composer test -- --coverage-clover=coverage.clover
1616

1717
after_script:
1818
- 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)