diff options
author | Tomas Barton <barton.tomas@gmail.com> | 2013-10-13 18:21:07 +0200 |
---|---|---|
committer | Tomas Barton <barton.tomas@gmail.com> | 2013-10-13 18:21:07 +0200 |
commit | 1bc94a452f234321c903110f1b5999cdb928a6d9 (patch) | |
tree | d20210bd01c1758028e00628f373c1fefbf5eafd | |
parent | 342ea7aa15a54c33ec4a12cf10b7b1a0c9811dba (diff) |
travis integration
-rw-r--r-- | .travis.yml | 2 | ||||
-rwxr-xr-x | script/bootstrap | 3 | ||||
-rwxr-xr-x | script/cibuild | 9 |
3 files changed, 13 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 330677c..41039c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ rvm: - 1.8.7 - 1.9.3 - 2.0.0 -script: 'rake spec' +script: './script/cibuild' env: - PUPPET_VERSION=2.6.0 - PUPPET_VERSION=2.7.0 diff --git a/script/bootstrap b/script/bootstrap new file mode 100755 index 0000000..0695797 --- /dev/null +++ b/script/bootstrap @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +bundle install --path vendor/gems --local diff --git a/script/cibuild b/script/cibuild new file mode 100755 index 0000000..d1c8c06 --- /dev/null +++ b/script/cibuild @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +set -e + +[ -z "${PUPPET_VERSION}" ] && script/bootstrap + +bundle exec rspec + +bundle exec puppet-lint --with-filename --fail-on-warnings manifests |