Standardize travis.yml on pattern introduced in stdlib
This commit is contained in:
parent
cbce722b1f
commit
122cafe62a
4 changed files with 31 additions and 23 deletions
5
.gemfile
5
.gemfile
|
@ -1,5 +0,0 @@
|
||||||
source :rubygems
|
|
||||||
|
|
||||||
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7']
|
|
||||||
gem 'puppet', puppetversion
|
|
||||||
gem 'puppetlabs_spec_helper', '>= 0.1.0'
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
*.swp
|
*.swp
|
||||||
pkg/
|
pkg/
|
||||||
|
Gemfile.lock
|
||||||
|
|
35
.travis.yml
35
.travis.yml
|
@ -1,26 +1,25 @@
|
||||||
language: ruby
|
language: ruby
|
||||||
|
bundler_args: --without development
|
||||||
|
script: "bundle exec rake spec SPEC_OPTS='--format documentation'"
|
||||||
rvm:
|
rvm:
|
||||||
- 1.8.7
|
- 1.8.7
|
||||||
- 1.9.3
|
- 1.9.3
|
||||||
before_script:
|
- ruby-head
|
||||||
after_script:
|
|
||||||
script: "rake spec"
|
|
||||||
env:
|
env:
|
||||||
- PUPPET_VERSION=3.0.2
|
- PUPPET_GEM_VERSION="~> 2.6"
|
||||||
- PUPPET_VERSION=2.7.20
|
- PUPPET_GEM_VERSION="~> 2.7"
|
||||||
- PUPPET_VERSION=2.7.6
|
- PUPPET_GEM_VERSION="~> 3.0"
|
||||||
- PUPPET_VERSION=2.6.9
|
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
allow_failures:
|
||||||
- rvm: 1.9.3
|
- rvm: ruby-head
|
||||||
gemfile: .gemfile
|
exclude:
|
||||||
env: PUPPET_VERSION=2.6.9
|
- rvm: 1.9.3
|
||||||
- rvm: 1.9.3
|
env: PUPPET_GEM_VERSION="~> 2.7"
|
||||||
gemfile: .gemfile
|
- rvm: ruby-head
|
||||||
env: PUPPET_VERSION=2.7.6
|
env: PUPPET_GEM_VERSION="~> 2.7"
|
||||||
- rvm: 1.9.3
|
- rvm: 1.9.3
|
||||||
gemfile: .gemfile
|
env: PUPPET_GEM_VERSION="~> 2.6"
|
||||||
env: PUPPET_VERSION=2.7.20
|
- rvm: ruby-head
|
||||||
|
env: PUPPET_GEM_VERSION="~> 2.6"
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
gemfile: .gemfile
|
|
||||||
|
|
13
Gemfile
Normal file
13
Gemfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
source :rubygems
|
||||||
|
|
||||||
|
group :development, :test do
|
||||||
|
gem 'puppetlabs_spec_helper', :require => false
|
||||||
|
end
|
||||||
|
|
||||||
|
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
||||||
|
gem 'puppet', puppetversion, :require => false
|
||||||
|
else
|
||||||
|
gem 'puppet', :require => false
|
||||||
|
end
|
||||||
|
|
||||||
|
# vim:ft=ruby
|
Loading…
Reference in a new issue