(PDOC-223) prepare travis for dropping old version support
This gets rid of test cells for old versions of ruby (< 2.1.9) and old versions of puppet (< 4) and also updates the test command to run all 100+ unit tests instead of a whopping 27 that rake spec runs
This commit is contained in:
parent
7900b73a35
commit
2a5d23f82b
10
.travis.yml
10
.travis.yml
|
@ -14,17 +14,13 @@ before_install:
|
|||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- rvm: 1.9.3
|
||||
env: PUPPET_GEM_VERSION="~> 3" CHECK=spec
|
||||
- rvm: 2.0.0
|
||||
env: PUPPET_GEM_VERSION="~> 3" CHECK=spec
|
||||
- rvm: 2.1.9
|
||||
env: PUPPET_GEM_VERSION="~> 3" CHECK=spec
|
||||
- rvm: 2.1.9
|
||||
env: PUPPET_GEM_VERSION="~> 4" CHECK=spec
|
||||
- rvm: 2.4.1
|
||||
env: PUPPET_GEM_VERSION="~> 4" CHECK=spec
|
||||
- rvm: 2.4.1
|
||||
env: PUPPET_GEM_VERSION="~> 5" CHECK=spec
|
||||
- rvm: 2.1.9
|
||||
env: PUPPET_GEM_VERSION="~> 4" CHECK=rubocop
|
||||
|
||||
script: 'SPEC_OPTS="--format documentation" COVERAGE="yes" bundle exec rake $CHECK'
|
||||
script: 'SPEC_OPTS="--format documentation" COVERAGE="yes" bundle exec rspec spec/unit/puppet-strings/*/*'
|
||||
|
|
|
@ -19,7 +19,7 @@ describe PuppetStrings::Yard::Handlers::Puppet::ClassHandler do
|
|||
let(:source) { 'class foo{' }
|
||||
|
||||
it 'should log an error' do
|
||||
expect{ subject }.to output(/\[error\]: Failed to parse \(stdin\): Syntax error at end of file/).to_stdout_from_any_process
|
||||
expect{ subject }.to output(/\[error\]: Failed to parse \(stdin\): Syntax error at end of input/).to_stdout_from_any_process
|
||||
expect(subject.empty?).to eq(true)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -19,7 +19,7 @@ describe PuppetStrings::Yard::Handlers::Puppet::DefinedTypeHandler do
|
|||
let(:source) { 'define foo{' }
|
||||
|
||||
it 'should log an error' do
|
||||
expect{ subject }.to output(/\[error\]: Failed to parse \(stdin\): Syntax error at end of file/).to_stdout_from_any_process
|
||||
expect{ subject }.to output(/\[error\]: Failed to parse \(stdin\): Syntax error at end of input/).to_stdout_from_any_process
|
||||
expect(subject.empty?).to eq(true)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -29,7 +29,7 @@ SOURCE
|
|||
}
|
||||
|
||||
it 'should raise an exception' do
|
||||
expect{ subject.parse }.to output(/\[error\]: Failed to parse test.pp: Syntax error at end of file/).to_stdout_from_any_process
|
||||
expect{ subject.parse }.to output(/\[error\]: Failed to parse test.pp: Syntax error at end of input/).to_stdout_from_any_process
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue