Skip to content

.travis.yml parsed incorrectly for strings with "mappings" #117

@arhamahmed

Description

@arhamahmed

For example:

language: ruby
rvm:
  - 2.2.0

install:
  - touch ~/.gem/credentials
  - chmod 0600 ~/.gem/credentials
  - echo ":my_key: $MY_KEY" >> ~/.gem/credentials

the third statement is considered invalid and parsed as {:"echo ":$my_key"=>"$MY_KEY" >> ~/.gem/credentials"} when run on a build. If the statement is run on debug mode it runs correctly without interpreting the string as a hash, as expected.

invalid_echo_parse

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions