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

DBuildService / dockerfile-parse
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: comments-in-parser-output
DEFAULT BRANCH: master
Repo Added 14 Dec 2016 03:20PM UTC
Files 4
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

LAST BUILD ON BRANCH label-env
branch: label-env
CHANGE BRANCH
x
Reset
  • label-env
  • 0.0.10
  • 0.0.7
  • 0.0.8
  • 0.0.9
  • ci
  • cleanup-tests
  • master
  • multistage
  • release_0.0.10
  • release_0.0.8
  • test-travis
  • tests/disable-rawhide
  • unicode-testing

pending completion
226

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>

428 of 447 relevant lines covered (95.75%)

5.74 hits per line

Relevant lines Covered
Build:
Build:
447 RELEVANT LINES 428 COVERED LINES
5.74 HITS PER LINE
Source Files on label-env
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
226 label-env 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 ... push 08 Feb 2018 05:22PM UTC twaugh travis-ci pending completion  
223 label-env Fix quoting rules for double-quotes Signed-off-by: Tim Waugh <twaugh@redhat.com> push 08 Feb 2018 04:59PM UTC twaugh travis-ci pending completion  
220 label-env Fix quoting rules for double-quotes Signed-off-by: Tim Waugh <twaugh@redhat.com> push 08 Feb 2018 04:53PM UTC twaugh travis-ci pending completion  
218 label-env Unpack tuples instead of making assertions about their length Signed-off-by: Tim Waugh <twaugh@redhat.com> push 08 Feb 2018 03:20PM UTC twaugh travis-ci pending completion  
216 label-env Fix a corner case Signed-off-by: Tim Waugh <twaugh@redhat.com> push 08 Feb 2018 12:57PM UTC twaugh travis-ci pending completion  
215 label-env 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 ... push 07 Feb 2018 04:41PM UTC twaugh travis-ci pending completion  
211 label-env 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 ... push 07 Feb 2018 04:28PM UTC twaugh travis-ci pending completion  
See All Builds (147)
  • Repo on GitHub
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

© 2025 Coveralls, Inc