Skip to content

Commit

Permalink
CI: Update aruba dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Gedon <[email protected]>
  • Loading branch information
nodeg committed Jan 10, 2023
1 parent 4a80d08 commit 912c8e8
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 54 deletions.
67 changes: 31 additions & 36 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,45 +13,42 @@ PATH
GEM
remote: https://rubygems.org/
specs:
aruba (0.6.2)
childprocess (>= 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
aruba (0.8.0)
childprocess (~> 0.5.6)
contracts (~> 0.9)
cucumber (>= 1.3.19)
rspec-expectations (>= 2.99)
ast (2.4.2)
builder (3.2.4)
cgi (0.3.5)
childprocess (4.1.0)
cgi (0.3.6)
childprocess (0.5.9)
ffi (~> 1.0, >= 1.0.11)
clamp (1.3.2)
cucumber (7.1.0)
contracts (0.17)
cucumber (8.0.0)
builder (~> 3.2, >= 3.2.4)
cucumber-core (~> 10.1, >= 10.1.0)
cucumber-create-meta (~> 6.0, >= 6.0.1)
cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
cucumber-gherkin (~> 22.0, >= 22.0.0)
cucumber-html-formatter (~> 17.0, >= 17.0.0)
cucumber-messages (~> 17.1, >= 17.1.1)
cucumber-wire (~> 6.2, >= 6.2.0)
diff-lcs (~> 1.4, >= 1.4.4)
mime-types (~> 3.3, >= 3.3.1)
multi_test (~> 0.1, >= 0.1.2)
cucumber-ci-environment (~> 9.0, >= 9.0.4)
cucumber-core (~> 11.0, >= 11.0.0)
cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
cucumber-gherkin (~> 23.0, >= 23.0.1)
cucumber-html-formatter (~> 19.1, >= 19.1.0)
cucumber-messages (~> 18.0, >= 18.0.0)
diff-lcs (~> 1.5, >= 1.5.0)
mime-types (~> 3.4, >= 3.4.1)
multi_test (~> 1.1, >= 1.1.0)
sys-uname (~> 1.2, >= 1.2.2)
cucumber-core (10.1.1)
cucumber-gherkin (~> 22.0, >= 22.0.0)
cucumber-messages (~> 17.1, >= 17.1.1)
cucumber-ci-environment (9.1.0)
cucumber-core (11.0.0)
cucumber-gherkin (~> 23.0, >= 23.0.1)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-tag-expressions (~> 4.1, >= 4.1.0)
cucumber-create-meta (6.0.4)
cucumber-messages (~> 17.1, >= 17.1.1)
sys-uname (~> 1.2, >= 1.2.2)
cucumber-cucumber-expressions (14.0.0)
cucumber-gherkin (22.0.0)
cucumber-messages (~> 17.1, >= 17.1.1)
cucumber-html-formatter (17.0.0)
cucumber-messages (~> 17.1, >= 17.1.0)
cucumber-messages (17.1.1)
cucumber-cucumber-expressions (15.2.0)
cucumber-gherkin (23.0.1)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-html-formatter (19.2.0)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-messages (18.0.0)
cucumber-tag-expressions (4.1.0)
cucumber-wire (6.2.1)
cucumber-core (~> 10.1, >= 10.1.0)
cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
diff-lcs (1.5.0)
docile (1.4.0)
erb (4.0.2)
Expand All @@ -62,7 +59,7 @@ GEM
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
multi_test (0.1.2)
multi_test (1.1.0)
open4 (1.3.4)
parallel (1.22.1)
parser (3.2.0.0)
Expand Down Expand Up @@ -110,12 +107,10 @@ GEM
unicode-display_width (2.4.2)

PLATFORMS
x86_64-darwin-21
x86_64-darwin-22
x86_64-linux

DEPENDENCIES
aruba (~> 0.6.2)
aruba (~> 0.8.0)
rake (~> 13.0.6)
rspec (~> 3.12.0)
rubocop (~> 1.43.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/tetra/facades/bash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def bash(command = nil)
run("bash --rcfile #{bashrc_file.path} -i -c '#{command}'")
[command]
else
run_interactive("bash --rcfile #{bashrc_file.path} -i")
run("bash --rcfile #{bashrc_file.path} -i")
history = File.read(history_file)
log.debug "history contents:"
log.debug history
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/coarse/dry_run_subcommand_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
run_simple("tetra init --no-archive mypackage")
cd("mypackage")

run_interactive("tetra dry-run")
run("tetra dry-run")
type("echo ciao")
type("echo ciao > ciao.jar")
type("\u{0004}") # ^D (Ctrl+D), terminates bash with exit status 0
Expand All @@ -34,7 +34,7 @@
run_simple("tetra init --no-archive mypackage")
cd("mypackage")

run_interactive("tetra dry-run -s 'echo ciao > ciao.jar'")
run("tetra dry-run -s 'echo ciao > ciao.jar'")

expect(all_output).to include("Scripted dry-run started")

Expand Down
8 changes: 4 additions & 4 deletions spec/lib/coarse/generate_all_subcommand_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# first dry-run, all normal
@aruba_timeout_seconds = 240
run_interactive("tetra dry-run --very-very-verbose")
run("tetra dry-run --very-very-verbose")
type("mvn package -DskipTests")
type("\u{0004}") # ^D (Ctrl+D), terminates bash with exit status 0

Expand All @@ -38,7 +38,7 @@
run_simple("tetra patch")

# third dry-run succeeds with patch
run_interactive("tetra dry-run")
run("tetra dry-run")
type("mvn package -DskipTests")
type("\u{0004}") # ^D (Ctrl+D), terminates bash with exit status 0

Expand Down Expand Up @@ -81,7 +81,7 @@
# second dry-run, all normal
cd(File.join("src", "commons-collections4-4.4-src"))
@aruba_timeout_seconds = 240
run_interactive("tetra dry-run")
run("tetra dry-run")
type("mvn package -DskipTests")
type("\u{0004}") # ^D (Ctrl+D), terminates bash with exit status 0

Expand All @@ -107,7 +107,7 @@
run_simple("tetra patch")

# third dry-run succeeds with patch
run_interactive("tetra dry-run")
run("tetra dry-run")
type("mvn package -DskipTests")
type("\u{0004}") # ^D (Ctrl+D), terminates bash with exit status 0
expect(all_output).to include("[INFO] BUILD SUCCESS")
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/coarse/generate_spec_subcommand_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
expect(output_from("tetra change-sources --no-archive")).to include("New sources committed")

@aruba_timeout_seconds = 300
run_interactive("tetra dry-run")
run("tetra dry-run")
type("mvn package -DskipTests")
type("\u{0004}") # ^D (Ctrl+D), terminates bash with exit status 0

Expand Down
12 changes: 8 additions & 4 deletions spec/lib/coarse/init_subcommand_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@
check_directory_presence([".git", "kit", "src", "packages"], true)

check_directory_presence([File.join("src", "commons-collections4-4.4-src")], true)
check_file_presence([File.join("src", "commons-collections4-4.4-src", "pom.xml")], true)
# check_file_presence([File.join("src", "commons-collections4-4.4-src", "pom.xml")], true)
expect([File.join("src", "commons-collections4-4.4-src", "pom.xml")]).to be_an_existing_file

check_file_presence([File.join("packages", "commons-collections", "commons-collections.zip")], true)
# check_file_presence([File.join("packages", "commons-collections", "commons-collections.zip")], true)
expect([File.join("packages", "commons-collections", "commons-collections.zip")]).to be_an_existing_file

run_simple("git rev-list --format=%B --max-count=1 HEAD")
expect(stdout_from("git rev-list --format=%B --max-count=1 HEAD")).to include("Inital sources added from archive")
Expand All @@ -75,9 +77,11 @@
check_directory_presence([".git", "kit", "src", "packages"], true)

check_directory_presence([File.join("src", "commons-collections4-4.4-src")], true)
check_file_presence([File.join("src", "commons-collections4-4.4-src", "pom.xml")], true)
# check_file_presence([File.join("src", "commons-collections4-4.4-src", "pom.xml")], true)

check_file_presence([File.join("packages", "commons-collections", "commons-collections.tar.gz")], true)
# check_file_presence([File.join("packages", "commons-collections", "commons-collections.tar.gz")], true)
expect([File.join("src", "commons-collections4-4.4-src", "pom.xml")]).to be_an_existing_file
expect([File.join("packages", "commons-collections", "commons-collections.tar.gz")]).to be_an_existing_file

run_simple("git rev-list --format=%B --max-count=1 HEAD")
expect(stdout_from("git rev-list --format=%B --max-count=1 HEAD")).to include("Inital sources added from archive")
Expand Down
5 changes: 1 addition & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
end

# set up aruba API
config.before(:each) do
restore_env
clean_current_dir
end
config.before(:each) { setup_aruba }
end

module Tetra
Expand Down
3 changes: 1 addition & 2 deletions tetra.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.require_paths = ["lib"]

s.required_ruby_version = '>= 2.7.0'

s.add_development_dependency "aruba", "~> 0.6.2"
s.add_development_dependency "aruba", "~> 0.8.0"
s.add_development_dependency "simplecov", "~> 0.22.0"
s.add_development_dependency "rake", "~> 13.0.6"
s.add_development_dependency "rspec", "~> 3.12.0"
Expand Down

0 comments on commit 912c8e8

Please sign in to comment.