Skip to content

Commit

Permalink
(maint) Use Ruby 2.5 on Travis for PDK as a library tests
Browse files Browse the repository at this point in the history
Concurrent-ruby 1.1.6 has a strange thread timing issue under Ruby 2.4 and the
spec/unit/pdk/analytics/util_spec.rb file. Causing facter to error with
"cannot alloc thread" which then halts the test. It doesn't occur on Appveyor
(Windows) or the regular rspec under Ruby 2.4 testing. So just use Ruby 2.5
instead.
  • Loading branch information
glennsarti committed Feb 12, 2020
1 parent fde65a3 commit a9ae477
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sudo: false
---
os:
- linux
dist: xenial
language: ruby
bundler_args: "--without development"
script:
Expand All @@ -15,7 +18,7 @@ before_install:
gem install bundler --no-document;
fi
cache: bundler
matrix:
jobs:
include:
- rvm: 2.4.3
env: CHECK=rubocop
Expand All @@ -35,7 +38,10 @@ matrix:
env: CHECK=spec
- rvm: 2.1.9
env: CHECK=spec BUNDLER_VERSION=1.17.3
- rvm: 2.4.3
# concurrent-ruby 1.1.6 has a strange thread timing issue under Ruby 2.4 and the
# spec/unit/pdk/analytics/util_spec.rb file. It doesn't occur on Appveyor (Windows)
# or the regular rspec under Ruby 2.4 testing. So just use Ruby 2.5 instead.
- rvm: 2.5
env: CHECK=test_pdk_as_library
branches:
only:
Expand Down

0 comments on commit a9ae477

Please sign in to comment.