veekun_pokedex/.travis.yml
Andrew Ekstedt e5c18c4109 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.
2020-03-04 16:19:29 -08:00

17 lines
278 B
YAML

os: linux
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "pypy"
- "pypy3"
install: pip install -e .
before_script: pokedex setup -v
script:
- py.test
- pokedex dump
- git --no-pager diff --exit-code pokedex/data/csv/