This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spec: Added support for kitchen testing to travis
- Loading branch information
Showing
24 changed files
with
53 additions
and
532 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
driver: | ||
name: docker | ||
privileged: true |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# frozen_string_literal: true | ||
require 'bundler/setup' | ||
|
||
desc 'Run Test Kitchen integration tests' | ||
namespace :integration do | ||
desc 'Run integration tests with kitchen-vagrant' | ||
task :vagrant do | ||
require 'kitchen' | ||
Kitchen.logger = Kitchen.default_file_logger | ||
Kitchen::Config.new.instances.each { |instance| instance.test(:always) } | ||
end | ||
|
||
desc 'Run integration tests with kitchen-docker' | ||
task :docker, [:instance] do |_t, args| | ||
args.with_defaults(instance: 'default-ubuntu-1404') | ||
require 'kitchen' | ||
Kitchen.logger = Kitchen.default_file_logger | ||
loader = Kitchen::Loader::YAML.new(local_config: '.kitchen.docker.yml') | ||
instances = Kitchen::Config.new(loader: loader).instances | ||
# Travis CI Docker service does not support destroy: | ||
instances.get(args.instance).verify | ||
end | ||
end | ||
|
||
task default: %w(integration:vagrant) |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
test/integration/repos/dummy-app.git/hooks/applypatch-msg.sample
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
test/integration/repos/dummy-app.git/hooks/commit-msg.sample
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
test/integration/repos/dummy-app.git/hooks/post-update.sample
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
test/integration/repos/dummy-app.git/hooks/pre-applypatch.sample
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
test/integration/repos/dummy-app.git/hooks/pre-commit.sample
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
test/integration/repos/dummy-app.git/hooks/pre-push.sample
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.