-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update travis to test building and installing on all rubies
- Loading branch information
Showing
1 changed file
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |