Skip to content

Commit 29c0b43

Browse files
committed
TASK: Configure static analysis and unittests via travis ci
1 parent 4669c42 commit 29c0b43

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Build/Travis/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"neos/buildessentials": "6.0.x-dev",
1717
"mikey179/vfsstream": "^1.6",
1818
"phpunit/phpunit": "^8.1",
19+
"phpstan/phpstan": "~0.12.0",
1920
"symfony/css-selector": "~2.0",
2021
"neos/behat": "@dev"
2122
},

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"neos/eel": "^5.3 || ^6.0 || dev-master",
88
"neos/fusion": "^4.3 || ^5.0 || dev-master"
99
},
10+
"require-dev": {
11+
"phpstan/phpstan": "*"
12+
},
1013
"autoload": {
1114
"psr-4": {
1215
"PackageFactory\\ColorHelper\\": "Classes/"
@@ -25,11 +28,16 @@
2528
"rm -f Build/Travis/Configuration/Routes.yaml",
2629
"cp Build/Travis/Routes.yaml Build/Travis/Configuration/"
2730
],
31+
"test:phpstan": [
32+
"composer test:prepare",
33+
"Build/Travis/bin/phpstan analyse Build/Travis/Packages/Application/PackageFactory.ColorHelper/Classes"
34+
],
2835
"test:unit": [
2936
"composer test:prepare",
3037
"Build/Travis/bin/phpunit --verbose -c Build/Travis/unit-tests.xml"
3138
],
3239
"test": [
40+
"composer test:phpstan",
3341
"composer test:unit"
3442
]
3543
}

0 commit comments

Comments
 (0)