Skip to content

Commit 80645fe

Browse files
committed
Added composer run-script phpstan and composer run-script phpunit
1 parent bdf7861 commit 80645fe

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ services:
1313
before_script:
1414
- composer self-update
1515
- composer update
16-
- #if [ $(phpenv version-name) != "5.6" ]; then composer require --dev phpstan/phpstan; fi
1716

1817
script:
19-
- vendor/bin/phpunit -c tests.xml
20-
- #if [ $(phpenv version-name) != "5.6" ]; then composer run-script phpstan; fi
21-
18+
- composer run-script phpunit
19+
- composer run-script phpstan

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
}
3131
},
3232
"scripts": {
33-
"phpstan": "phpstan analyse --level 4 src"
33+
"phpstan": "phpstan analyse --level 4 src",
34+
"phpunit": "phpunit -c tests.xml"
3435
}
3536
}

0 commit comments

Comments
 (0)