Skip to content

Commit e5c18c4

Browse files
committed
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.
1 parent 77e3d9d commit e5c18c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ before_script: pokedex setup -v
1414
script:
1515
- py.test
1616
- pokedex dump
17+
- git --no-pager diff --exit-code pokedex/data/csv/

0 commit comments

Comments
 (0)