Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Ensure generated files are checked in
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousleo committed Jun 24, 2020
1 parent 0841866 commit 83e9aa8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pkgs.mkShell (
set +x
echo "./nix/fmt.sh --check: $nix_fmt"
echo "carnix update: $carnixupdates"
echo "Cargo.nix changed: $carnixdiff"
echo "cargo fmt: $cargofmtexit"
echo "cargo clippy: $cargoclippyexit"
Expand All @@ -137,11 +138,15 @@ pkgs.mkShell (
lorri_travis_fold cargo-test cargo test
cargotestexit=$?
git diff --quiet -- src/
gendiff=$?
set +x
echo "script tests: $scripttests"
echo "generated files changed: $gendiff"
echo "cargo test: $cargotestexit"
sum=$((scripttest + cargotestexit))
sum=$((scripttest + cargotestexit + gendiff))
if [ "$sum" -gt 0 ]; then
return 1
fi
Expand Down

0 comments on commit 83e9aa8

Please sign in to comment.