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

DBuildService / dockerfile-parse / 211
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: comments-in-parser-output
DEFAULT BRANCH: master
Ran 07 Feb 2018 04:28PM UTC
Jobs 2
Files 4
Run time 2min
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
211

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%)

1.91 hits per line

Jobs
ID Job ID Ran Files Coverage
2 211.2 (OS=centos OS_VERSION=7 PYTHON_VERSION=2) 07 Feb 2018 04:28PM UTC 0
95.74
Travis Job 211.2
3 211.3 (OS=fedora OS_VERSION=26 PYTHON_VERSION=2) 07 Feb 2018 04:28PM UTC 0
95.74
Travis Job 211.3
Source Files on build 211
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #211
  • 5f417fa9 on github
  • Next Build on label-env (#215)
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