From 1bc94a452f234321c903110f1b5999cdb928a6d9 Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Sun, 13 Oct 2013 18:21:07 +0200 Subject: travis integration --- .travis.yml | 2 +- script/bootstrap | 3 +++ script/cibuild | 9 +++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 script/bootstrap create mode 100755 script/cibuild 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 -- cgit v1.2.3