Skip to content

Commit 4a1acec

Browse files
committed
feature #984 Fail CI if the repo is in a dirty state after building assets (bocharsky-bw)
This PR was merged into the master branch. Discussion ---------- Fail CI if the repo is in a dirty state after building assets In order to prevent things fixed in #982 I think we can check for missing assets on TravisCI Tests should pass after merging #982 Commits ------- 1ae5bb1 Fail CI if the repo is in a dirty state after building assets
2 parents bdd0a35 + 1ae5bb1 commit 4a1acec

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)