Travis CI: check that dump is idempotent

Run git-diff after dumping the database to make sure that there are no
changes to the csv files.

We often get PRs from people who edit stuff by hand and don't know to do
a load/dump of the database afterwards. Usually this means they were
adding game data by hand, which we want to discourage, but even if it's
done for valid reasons it's good to canonicalize the csv files as soon
as possible to avoid interfering with future commits.
This commit is contained in:
Andrew Ekstedt 2020-02-29 18:49:48 -08:00
parent 77e3d9df16
commit e5c18c4109
1 changed files with 1 additions and 0 deletions

View File

@ -14,3 +14,4 @@ before_script: pokedex setup -v
script:
- py.test
- pokedex dump
- git --no-pager diff --exit-code pokedex/data/csv/