Skip to content

Instantly share code, notes, and snippets.

@zeedark
Created June 20, 2018 15:57
Show Gist options
  • Save zeedark/3a3c6c666de9d53a04f6f88951fbc97f to your computer and use it in GitHub Desktop.
Save zeedark/3a3c6c666de9d53a04f6f88951fbc97f to your computer and use it in GitHub Desktop.
# Source:
# https://stackoverflow.com/questions/3971822/how-do-i-validate-my-yaml-file-from-command-line
$ ruby -e "require 'yaml';puts YAML.load_file('some-file.yaml')"
$ perl -MYAML -e 'use YAML;YAML::LoadFile("./file.yaml")'
$ python -c "from yaml import load, Loader; load(open('.travis.yml'), Loader=Loader)"
$ travis lint .travis.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment