Skip to content

Instantly share code, notes, and snippets.

@grdnrio
Last active March 23, 2017 08:10
Show Gist options
  • Select an option

  • Save grdnrio/78784a918a03abafac200aca8e9bcc9d to your computer and use it in GitHub Desktop.

Select an option

Save grdnrio/78784a918a03abafac200aca8e9bcc9d to your computer and use it in GitHub Desktop.
Travis file for verifying YAML CFTs
language: ruby
git:
submodules: false
before_install:
- echo "Installing test gems"
- gem install yaml-lint
# skip install step
install: true
script:
- yaml-lint cloudformation/my-template.yml
after_success:
- echo "Test Success - Branch($TRAVIS_BRANCH) Pull Request($TRAVIS_PULL_REQUEST) Tag($TRAVIS_TAG)"
- echo "Cloud Formation Template YAML validated"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment