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

DBuildService / dockerfile-parse / 215 / 5
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: comments-in-parser-output
DEFAULT BRANCH: master
Ran 07 Feb 2018 04:45PM UTC
Files 4
Run time 0s
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

07 Feb 2018 04:27PM UTC coverage: 95.74%. First build
OS=fedora OS_VERSION=27 PYTHON_VERSION=2

push

travis-ci

twaugh
Combine environment variable substitution with quote removal

This fixes the tests added in the previous commit.

The EnvSubst class is renamed to WordSplitter, and provides
two methods:
* dequote() returns the string with quotes/escaped consumed
* split() breaks the string into words at whitespace

This new class can be told whether or not to apply
environment variable substitutions.

The way we process ENV/LABEL instructions is now to first
break the instruction value into words, without quoting or
applying environment variable substitutions. We can then
inspect the first word to find out which key/value form is
in use ("key=value" vs "key the value").

Based on this we now apply environment variable substitution
to each key and value separately, consuming quotes and
escape characters.

A similar process is used when modifying an ENV/LABEL
instruction, with the exception that key=value forms are
left alone with quotes and escapes intact unless modified.
This is the reason for changing some existing test cases.

Signed-off-by: Tim Waugh <twaugh@redhat.com>

427 of 446 relevant lines covered (95.74%)

0.96 hits per line

Source Files on job 215.5 (OS=fedora OS_VERSION=27 PYTHON_VERSION=2)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 215
  • Travis Job 215.5
  • 05303622 on github
  • Next Job for OS=fedora OS_VERSION=27 PYTHON_VERSION=2 on label-env (#216.5)
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