Using Travis CI With Puppet Modules
From Kyle's Wiki
Contents |
Assumptions
- A Gemfile is setup that declares the gems you need to test
- bundle exec rake spec - actually runs your tests
First Setup: Signup
Link your GitHub account: https://travis-ci.org/profile
Setup A .travis.yml File
rvm: - 1.8.7 - 1.9.3 - 2.0.0 script: "bundle exec rake spec" env: matrix: - PUPPET_GEM_VERSION="~> 2.7.0" - PUPPET_GEM_VERSION="~> 3.0.0" - PUPPET_GEM_VERSION="~> 3.1.0" - PUPPET_GEM_VERSION="~> 3.2.0" - PUPPET_GEM_VERSION="~> 3.3.0" matrix: exclude: - rvm: 1.9.3 env: PUPPET_GEM_VERSION="~> 2.7.0" - rvm: 2.0.0 env: PUPPET_GEM_VERSION="~> 2.7.0" - rvm: 2.0.0 env: PUPPET_GEM_VERSION="~> 3.0.0" - rvm: 2.0.0 env: PUPPET_GEM_VERSION="~> 3.1.0" - rvm: 1.8.7 env: PUPPET_GEM_VERSION="~> 3.2.0" - rvm: 1.8.7 env: PUPPET_GEM_VERSION="~> 3.3.0"
Setup "Sync" For The Project on the Account Page
Push To Initiate a Build
git push origin master
Add a Badge to Your Readme
[![Build Status](https://travis-ci.org/solarkennedy/puppet-module.png)](https://travis-ci.org/solarkennedy/puppet-module)