Skip to content

Commit 64c97c4

Browse files
authored
Merge pull request #145 from DavidS/improve-travis
Improve travis cells and testing
2 parents f5bbba0 + e75756d commit 64c97c4

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ matrix:
2828
bundler: true
2929
directories: ~/.rvm
3030
before_install: rvm use jruby-9.1.9.0 --install --binary --fuzzy
31-
- rvm: 2.4.3
31+
- rvm: 2.5.1
3232
env: CHECK=rubocop
33-
- rvm: 2.4.3
33+
- rvm: 2.5.1
3434
env: CHECK=license_finder
3535
bundler_args: ""
3636

@@ -52,10 +52,18 @@ matrix:
5252
env: PUPPET_GEM_VERSION='~> 4.8.0'
5353
- rvm: 2.1.9
5454
env: PUPPET_GEM_VERSION='~> 4.7.0'
55+
- rvm: 2.5.1
56+
env: PUPPET_GEM_VERSION='~> 6' # 6.0, soon 6.1
57+
- rvm: 2.5.1
58+
env: PUPPET_GEM_VERSION='~> 6.0'
5559
- rvm: 2.5.1
5660
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#master'
5761
- rvm: 2.5.1
5862
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#6.0.x'
63+
- rvm: 2.4.3
64+
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#5.5.x'
65+
- rvm: 2.1.9
66+
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#4.10.x'
5967
notifications:
6068
hipchat:
6169
rooms:

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,6 @@ Future possibilities:
231231
* [Multiple Providers](https://tickets.puppetlabs.com/browse/PDK-530)
232232
* [Commands API](https://tickets.puppetlabs.com/browse/PDK-847)
233233

234-
## Development
235-
236-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
237-
238-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
239-
240234
## Contributing
241235

242236
Bug reports and pull requests are welcome on GitHub at https://github.com/puppetlabs/puppet-resource_api.

spec/acceptance/device_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
end
1313

1414
before(:all) do
15-
FileUtils.mkdir_p(File.expand_path('~/.puppetlabs/opt/puppet/cache/devices/the_node/state'))
15+
if Gem::Version.new(Puppet::PUPPETVERSION) >= Gem::Version.new('5.3.0') && Gem::Version.new(Puppet::PUPPETVERSION) < Gem::Version.new('5.4.0')
16+
# work around https://tickets.puppetlabs.com/browse/PUP-8632 and https://tickets.puppetlabs.com/browse/PUP-9047
17+
FileUtils.mkdir_p(File.expand_path('~/.puppetlabs/opt/puppet/cache/devices/the_node/state'))
18+
end
1619
end
1720

1821
describe 'using `puppet resource`' do

0 commit comments

Comments
 (0)