travis-ci / travis-yaml

parses, normalizes, validates and serializes your .travis.yml
http://yaml.travis-ci.org/
MIT License
170 stars 66 forks source link

Investigate patches for recent Gatekeeper normalizations #99

Open svenfuchs opened 8 years ago

svenfuchs commented 8 years ago

DO NOT MERGE

Only opening a PR here for potential discussion.

This is more of a quick experiment in order to figure out what would be needed to get specs passing that are equivalent to the current Gatekeeper specs.

I have marked all specs as pending that:

There is only one remaining case that I think we should continue supporting:

travis-yaml only accepts env vars given as a Sequence:

  env:
    - FOO=foo
    - BAR=bar

While Gatekeeper also accepts them when given as a Map:

  env:
    FOO: foo
    BAR: bar

The same goes for nested global and matrix keys:

  env:
    global:
      - FOO=foo
      - BAR=bar
    matrix:
      - BAZ=baz
      - BUZ=buz

versus:

  env:
    global:
      FOO: foo
      BAR: bar
    matrix:
      BAZ: baz
      BUZ: buz