From b25daa7bd51f2ffa3e239a98e9a4d043abde66eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Thu, 1 Aug 2019 15:28:00 +0200 Subject: [PATCH] chore(ci): prohibit the build causes source changes Verify that the build process does not cause changes in git tracked files. Fixes #3451 --- .travis.yml | 3 +-- buildspec-pr.yaml | 2 +- buildspec.yaml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a11760bdf2cdc..3b3ceee5417a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,5 +19,4 @@ cache: - pip install: ./install.sh -script: ./build.sh - +script: ./build.sh && git diff-index --exit-code --ignore-space-at-eol --stat HEAD diff --git a/buildspec-pr.yaml b/buildspec-pr.yaml index 909ff549172c7..4a64550cb3fae 100644 --- a/buildspec-pr.yaml +++ b/buildspec-pr.yaml @@ -8,4 +8,4 @@ phases: - /bin/bash ./install.sh build: commands: - - /bin/bash ./build.sh + - /bin/bash ./build.sh && git diff-index --exit-code --ignore-space-at-eol --stat HEAD diff --git a/buildspec.yaml b/buildspec.yaml index ef888c6eb56b8..d589f9f24e160 100644 --- a/buildspec.yaml +++ b/buildspec.yaml @@ -11,7 +11,7 @@ phases: - /bin/bash ./fetch-dotnet-snk.sh build: commands: - - /bin/bash ./build.sh + - /bin/bash ./build.sh && git diff-index --exit-code --ignore-space-at-eol --stat HEAD post_build: commands: - "[ -f .BUILD_COMPLETED ] && /bin/bash ./pack.sh"