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

JWT addon support #97

Closed halkeye closed 6 years ago

halkeye commented 8 years ago

I noticed during my tests travis lint doesn't work 'cause its not defined yet.

Warnings for .travis.yml:
[x] value for addons section is empty, dropping
[x] in addons section: unexpected key jwt, droppin

Kinda a placeholder till I get a PR ready

@BanzaiMan

Hopefully this is okay

halkeye commented 8 years ago

nope, certainly isn't right

I think the spec should be example { expect(addons(jwt: [ { secure: "String" } ]).jwt).to be == ["String"] }

I think the addons.rb should be:

        class JWTTokens < Sequence
          type Scalar[:str, :secure]
        end
      map :jwt,             to: JWTTokens

But it keeps saying empty addon

halkeye commented 8 years ago

I found a solution, not sure its the right test

halkeye commented 6 years ago

Closing this as the project is being removed