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

wikimedia / svgtranslate / 353 / 1
77%
master: 72%

Build:
Build:
LAST BUILD BRANCH: upload-urls-T224265
DEFAULT BRANCH: master
Ran 18 Dec 2018 01:07AM UTC
Files 14
Run time 2s
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

18 Dec 2018 01:04AM UTC coverage: 76.578% (-0.01%) from 76.589%
353.1

push

travis-ci-com

samwilson
Switch to PNG rendering for image display

This patch changes the API to return PNG images instead of SVG,
so that we can specify the language that is used for the rendering.
To do this, we pass the name of the cached SVG file to a call to
the external rsvg-convert command, which returns the PNG to stdout.
This is served in the usual way.

This change also breaks the API URLs by adding in a 'lang' URL
parameter. This is required because we may not be rendering to the
tool user's current interface language.

When a POST request is given with new translations, the resulting
changed SVG file has to be written to the filesystem so that
rsvg-convert can access it. This is done by creating a new unique
temp file in the same images' cache directory, so that the files
thus created can be cleaned up by the existing clearing
mechanism.

The Docker image we're using doesn't (until T151656 is resolved)
have rsvg-convert installed, so this patch also adds this to the
dockerstart script.

Bug: https://phabricator.wikimedia.org/T211637

461 of 602 relevant lines covered (76.58%)

3.22 hits per line

Source Files on job 353.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 79
  • Travis Job 353.1
  • 0832e1b7 on github
  • Prev Job for on rsvg-rendering (#353.1)
  • Next Job for on rsvg-rendering (#355.1)
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