Skip to content

Commit

Permalink
chore(ci): prohibit the build causes source changes
Browse files Browse the repository at this point in the history
Verify that the build process does not cause changes in git tracked
files.

Fixes #3451
  • Loading branch information
RomainMuller committed Aug 1, 2019
1 parent c7e9dfb commit b25daa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion buildspec-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b25daa7

Please sign in to comment.