Skip to content

Commit d9f8f77

Browse files
committed
Fail CI if the repo is in a dirty state after building assets
1 parent 8e2a323 commit d9f8f77

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: php
22
sudo: false
33

44
cache:
5+
yarn: true
56
directories:
67
- $HOME/.composer/cache/files
78
- ./bin/.phpunit
@@ -29,6 +30,10 @@ install:
2930
- composer install
3031
- ./bin/phpunit install
3132

33+
after_install:
34+
# Fail CI if the repo is in a dirty state after building assets
35+
- yarn install && yarn build && git add --all && git diff --staged --exit-code
36+
3237
script:
3338
- ./bin/phpunit
3439
# this checks that the source code follows the Symfony Code Syntax rules

0 commit comments

Comments
 (0)