Skip to content

Commit

Permalink
Update travis to test building and installing on all rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Jun 17, 2020
1 parent 29add1d commit 9cd06ed
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
---
os: linux
language: ruby
script: "bundle exec rspec spec"
cache: bundler

stages:
- smoke
- test

rvm:
- 2.7
- 2.5
- 2.4
- 2.3
- 2.2
- 2.1

env:
- SET=dev
- SET=system

script: |
# test installing the gems from $SET on this ruby version
set -e
echo create gems
bundle exec ./exe/build-gems.rb
# as used in Gemfiles from pdk-templates
MINOR_VERSION=$(ruby -e 'puts Gem::Version.new(RUBY_VERSION.dup).segments[0..1].join(".")')
echo install requested packages for $MINOR_VERSION
gem install -N pkg/puppet-module-posix-default-r${MINOR_VERSION}*gem
gem install -N pkg/puppet-module-posix-${SET}-r${MINOR_VERSION}*gem
jobs:
include:
- stage: smoke
name: "Make sure that gems build"
script: bundle exec ./exe/build-gems.rb
- stage: smoke
name: "Unit Tests"
script: bundle exec rspec spec

notifications:
email: false
rvm:
- 2.3.1

0 comments on commit 9cd06ed

Please sign in to comment.