Skip to content

Commit 1ae5bb1

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.yml

Lines changed: 3 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
@@ -43,3 +44,5 @@ script:
4344
- ./bin/console security:check
4445
# this checks that Doctrine's mapping configurations are valid
4546
- ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction
47+
# Fail CI if the repo is in a dirty state after building assets
48+
- yarn install && yarn build && git add --all && git diff --staged --shortstat --exit-code

0 commit comments

Comments
 (0)