9226037e4e
This patch adds the ability to validate syntax of manifests, templates, and ruby files in lib/ via `rake validate` and the linting of manifests with puppet-lint via `rake lint`. These two commands are chained with running the spec tests in Travis to ensure there are no syntax or style issues.
25 lines
583 B
YAML
25 lines
583 B
YAML
language: ruby
|
|
bundler_args: --without development
|
|
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--color --format documentation'"
|
|
rvm:
|
|
- 1.8.7
|
|
- 1.9.3
|
|
- 2.0.0
|
|
- ruby-head
|
|
env:
|
|
- PUPPET_GEM_VERSION=">= 3.0.0"
|
|
matrix:
|
|
allow_failures:
|
|
- rvm: 2.0.0
|
|
- rvm: ruby-head
|
|
include:
|
|
- rvm: 1.8.7
|
|
env: PUPPET_GEM_VERSION="~> 2.7"
|
|
notifications:
|
|
email: false
|
|
webhooks:
|
|
urls:
|
|
- https://puppet-dev-community.herokuapp.com/event/travis-ci/
|
|
on_success: always
|
|
on_failure: always
|
|
on_start: yes
|