Skip to content

Commit

Permalink
Add scripts to composer json, Execute phpstan in travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasnatter committed Oct 7, 2019
1 parent e1be05a commit b921bde
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ matrix:
- php: 7.3
env:
- COMPOSER_FLAGS="--prefer-dist --no-interaction"
- PHPSTAN=true

before_install:
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
Expand All @@ -25,8 +26,5 @@ before_script:
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update $COMPOSER_FLAGS

script:
- vendor/bin/phpunit

notifications:
slack:
secure: "Gd3/1e0pBKvJv1UhWpBkWijJpmSWlarg6uPBJO0h4z1IpkZjd++jOjhmOQ7n+yMfuapQuJTcVOK0yIWu7orJoGAKFkBlMEIrLk1xMAG9phjjMLUO0FWgcQ3eVW5mTyfMBtClz4OL5wXckw17ohtXHDK8qnI0Hz9Qj8Rqgf2OZhM="
- if [[ $PHPSTAN = true ]]; then composer phpstan; fi
- composer phpunit
13 changes: 12 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"type": "sulu-bundle",
"description": "The Sulu Bundle which provides themes",
"license": "MIT",
"keywords": ["sulu", "theme"],
"keywords": [
"sulu",
"theme"
],
"authors": [
{
"name": "Sulu Community",
Expand Down Expand Up @@ -33,5 +36,13 @@
"psr-4": {
"Sulu\\Bundle\\ThemeBundle\\": ""
}
},
"scripts": {
"phpstan": [
"vendor/bin/phpstan analyse"
],
"phpunit": [
"vendor/bin/phpunit"
]
}
}

0 comments on commit b921bde

Please sign in to comment.