From 1ae5bb14296cd14a516ce2386fdc1c29ee26546c Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Sun, 2 Jun 2019 22:36:48 +0300 Subject: [PATCH] Fail CI if the repo is in a dirty state after building assets --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index e05fb0960..95fa245cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: php sudo: false cache: + yarn: true directories: - $HOME/.composer/cache/files - ./bin/.phpunit @@ -43,3 +44,5 @@ script: - ./bin/console security:check # this checks that Doctrine's mapping configurations are valid - ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction + # Fail CI if the repo is in a dirty state after building assets + - yarn install && yarn build && git add --all && git diff --staged --shortstat --exit-code