• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mysociety / global.mapit.mysociety.org / 43
77%

Build:
DEFAULT BRANCH: master
Ran 07 Nov 2017 01:38PM UTC
Jobs 4
Files 26
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
43

push

travis-ci

mhl
Add a command to set .country on areas (and assess ambiguities)

This command:

 - Iterates over every area

 - Takes an arbitrary point within every polygon in that area

 - Finds all the O02 (country-level) areas that contain those points

 - If there's exactly one of those, sets it as the country on the area

 - Otherwise sets it to a special '?' country, and outputs an error
   message describing the ambiguity

The plan is to run this command (*without* --commit) to assess the
number of areas that have ambiguous enclosing areas, and then decide
what do about those cases. (e.g. we could change MapIt's data model to
accommodate multiple countries for an area, making sure not to break the
existing API; we could pick the smaller of the ambiguous regions
(typically more useful information); we could use the special '?'
country for real.)

86 of 86 new or added lines in 1 file covered. (100.0%)

1139 of 1754 relevant lines covered (64.94%)

2.59 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
67
100.0
mapit_global/management/commands/mapit_global_update_countries.py
Jobs
ID Job ID Ran Files Coverage
1 43.1 (TOXENV=py27) 07 Nov 2017 01:39PM UTC 0
64.77
Travis Job 43.1
2 43.2 (TOXENV=py34) 07 Nov 2017 01:38PM UTC 0
64.77
Travis Job 43.2
3 43.3 (TOXENV=py35) 07 Nov 2017 01:38PM UTC 0
64.75
Travis Job 43.3
4 43.4 (TOXENV=py36) 07 Nov 2017 01:39PM UTC 0
64.75
Travis Job 43.4
Source Files on build 43
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #43
  • 8d178545 on github
  • Prev Build on master (#34)
  • Next Build on master (#44)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc