File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 7
7
before_script :
8
8
- if php --ri xdebug >/dev/null; then phpenv config-rm xdebug.ini; fi
9
9
before_install :
10
- - composer self-update
11
10
- composer global require "hirak/prestissimo:^0.3"
12
11
install :
13
12
- composer install --no-interaction
14
13
script :
14
+ # Inspections
15
15
- ./vendor/bin/phpcs src
16
16
- ./vendor/bin/phpstan analyze src
17
+
18
+ # Try to add to a Drupal setup.
19
+ - composer create-project drupal-composer/drupal-project:8.x-dev $TRAVIS_BUILD_DIR/../drupal --no-interaction
20
+ - cd $TRAVIS_BUILD_DIR/../drupal
21
+
22
+ # Install dependency.
23
+ - composer config repositories.0 path $TRAVIS_BUILD_DIR
24
+ - composer require mglaman/phpstan-drupal
25
+ - cp $TRAVIS_BUILD_DIR/tests/fixtures/drupal-phpstan.neon phpstan.neon
26
+ - ./vendor/bin/phpstan analyze web/core/install.php
27
+
17
28
cache :
18
29
directories :
19
30
- $HOME/.composer/cache
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ excludes_analyse :
3
+ - *Test.php
4
+ - *TestBase.php
5
+ level : 0
6
+ includes :
7
+ - vendor/mglaman/phpstan-drupal/extension.neon
You can’t perform that action at this time.
0 commit comments