From e5c18c410994d5fb589bc3dceaba71f85268edfb Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Sat, 29 Feb 2020 18:49:48 -0800 Subject: [PATCH] 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. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 5112c82..d207905 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,3 +14,4 @@ before_script: pokedex setup -v script: - py.test - pokedex dump + - git --no-pager diff --exit-code pokedex/data/csv/