Commit Graph

9 Commits

Author SHA1 Message Date
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
Andrew Ekstedt 77e3d9df16 Travis CI: don't pass -l to dump
The help text for pokedex dump -l says

    -l LANGS, --langs LANGS
                        comma-separated list of language codes to load,
                        'none', or 'all' (default: en)

However, the values 'none' and 'all' don't work (they are treated as
language names) and the default is to dump all languages, not just
English.

So `dump -l all` actually dumps no text at all because there is no
language called 'all'.

This is about to cause trouble for Travis CI because the next commit
will start checking that load/dump successfully round-trips... which
definitely isn't the case right now because the dump is missing
all text from translated tables.

The dump command and its documentation should definitely be fixed at
some point, but for now just stop using -l.
2020-03-04 16:19:29 -08:00
Andrew Ekstedt 51957b9b37 Travis CI: fix some config warnings
`sudo: false` used to be the way to opt in to their container-based
infrastructure. That system was retired in 2018 and so the `sudo` option
no longer does anything. Remove it.

Travi CI supports multiple OSes now. Add `os: linux` to be explicit
about which OS we want to test on.
2020-03-04 15:27:38 -08:00
Andrew Ekstedt 03974e6f22 Travis CI: test Python 3.6 and 3.7 2019-11-15 22:35:12 -08:00
Andrew Ekstedt 51af10b995 Travis CI: test pokedex dump 2018-08-22 21:47:32 -07:00
Andrew Ekstedt 6e9db09442 Travis: Drop Python 2.6
Markdown keeps breaking the 2.6 build. We could pin an earlier version,
or we can simply drop 2.6 support. The Python world is moving on; time
for us to do the same.
2015-11-05 12:39:01 -08:00
Eevee (Alex Munroe) 43db6a5337 That day is today -- run Travis on Python 3! 2015-10-05 08:15:25 -07:00
Andrew Ekstedt 1c1f65f198 Travis: Declare that we don't use sudo
This will apparently allow us to build on Travis's new container-based build
system, which is supposed to lead to faster builds. The catch is that we
don't get root access, but we don't need it anyway.

http://docs.travis-ci.com/user/migrating-from-legacy/
2015-08-20 20:33:46 -07:00
Andrew Ekstedt c26ea65c79 Travis: Add config file for Travis CI.
https://travis-ci.org/veekun/pokedex
2015-05-23 18:26:09 -07:00