Skip to content

Commit

Permalink
(CONT-935) Remove travis references
Browse files Browse the repository at this point in the history
Prior to this commit, there were still references to travis in the
tests. This was causing failures when using the latest pdk-template
versions as trave has now been removed.

This change removes references to travis.
  • Loading branch information
chelnak committed May 26, 2023
1 parent a55afd8 commit c0fd14c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 41 deletions.
1 change: 0 additions & 1 deletion docs/pdk_converting_modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ changes.
|`Rakefile`|File containing configuration for the Ruby infrastructure. Used in CI and for backwards compatibility.|
|`.rspec`|File containing the default configuration for RSpec.|
|`.rubocop.yml`|File containing recommended settings for Ruby style checking.|
|`.travis.yml`|File containing configuration for cloud-based testing on Linux and Mac OS X. See [travis-ci](http://travis-ci.org/) for more information.|
|`.yardopts`|File containing configuration for [YARD](https://yardoc.org/) for source files, extra files, and formatting options that you want to use to generate your documentation.|

## Convert a module
Expand Down
1 change: 0 additions & 1 deletion docs/pdk_creating_modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ writing, validating, and testing Puppet code. 
|`.sync.yml`|File to customize the PDK template in use.|
|`./tasks`|Directory containing task files and task metadata files for any tasks you create with the `pdk new task`command.|
|`./templates`|Directory containing any ERB or EPP templates. Required when building a module to upload to the Forge.|
|`.travis.yml`|File containing configuration for cloud-based testing on Linux and Mac OS X. See the [travis-ci](http://travis-ci.org/) docs for more information.|
|`.vscode`|Directory containing configuration for Visual Studio code.|
|`.yardopts`|File containing the default configuration for Puppet Strings.|

Expand Down
28 changes: 0 additions & 28 deletions spec/acceptance/convert_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,34 +108,6 @@
end
end

context 'when deleting a file' do
include_context 'in a new module', 'deleted_file', template: template_repo

before(:all) do
File.open('.sync.yml', 'w') do |f|
f.puts <<~EOS
---
.travis.yml:
delete: true
EOS
end
end

describe command("#{pdk_convert_base} --force --skip-interview") do
its(:exit_status) { is_expected.to eq(0) }
its(:stderr) { is_expected.to have_no_output }
its(:stdout) { is_expected.to match(%r{-+files to be removed-+\n.*/\.travis.yml}mi) }
end

describe file('.travis.yml') do
it { is_expected.not_to be_file }
end

describe file('convert_report.txt') do
it { is_expected.not_to be_file }
end
end

context 'when an init-only templated file is missing' do
include_context 'in a new module', 'init_missing', template: template_repo

Expand Down
11 changes: 0 additions & 11 deletions spec/acceptance/update_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,26 @@
File.open('metadata.json', 'w') do |f|
f.puts metadata.to_json
end
FileUtils.rm('.travis.yml')
end

describe command('pdk update --noop') do
its(:exit_status) { is_expected.to eq(0) }
its(:stdout) { is_expected.to match(%r{-+files to be added-+\n.*/\.travis\.yml}mi) }
its(:stdout) { is_expected.to match(%r{-+files to be modified-+\n.*/metadata\.json}mi) }
its(:stderr) { is_expected.to match(/updating \w+?-update using the default template/i) }

describe file('update_report.txt') do
it { is_expected.to be_file }
end

describe file('.travis.yml') do
it { is_expected.not_to be_file }
end
end

describe command('pdk update --force') do
its(:exit_status) { is_expected.to eq(0) }
its(:stdout) { is_expected.to match(%r{-+files to be added-+\n.*/\.travis\.yml}mi) }
its(:stdout) { is_expected.to match(%r{-+files to be modified-+\n.*/metadata\.json}mi) }
its(:stderr) { is_expected.to match(/updating \w+?-update using the default template/i) }

describe file('update_report.txt') do
it { is_expected.to be_file }
end

describe file('.travis.yml') do
it { is_expected.to be_file }
end
end
end

Expand Down

0 comments on commit c0fd14c

Please sign in to comment.