-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1601 from zendesk/grosser/24
SAMSON-322 use ruby 2.4
- Loading branch information
Showing
9 changed files
with
22 additions
and
16 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 |
---|---|---|
@@ -1 +1 @@ | ||
2.3.3 | ||
2.4.1 |
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 |
---|---|---|
|
@@ -583,7 +583,7 @@ DEPENDENCIES | |
webmock | ||
|
||
RUBY VERSION | ||
ruby 2.3.3p222 | ||
ruby 2.4.1p111 | ||
|
||
BUNDLED WITH | ||
1.15.3 |
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
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 |
---|---|---|
|
@@ -381,7 +381,8 @@ def stub_push(repo, tag, result, force: false) | |
DockerBuilderService.class_variable_set(:@@docker_major_version, nil) | ||
end | ||
|
||
it "adds login commands" do | ||
it "uses email flag when docker is old" do | ||
DockerBuilderService.expects(:read_docker_version).returns("1.12.0") | ||
called[1].must_equal "docker login --username fo\\+o --password ba\\+r --email [email protected] ba\\+z.com" | ||
end | ||
|
||
|
@@ -391,9 +392,13 @@ def stub_push(repo, tag, result, force: false) | |
end | ||
|
||
it "does not use email flag on newer docker versions" do | ||
DockerBuilderService.expects(:docker_major_version).returns(17) | ||
DockerBuilderService.expects(:read_docker_version).returns("17.0.0") | ||
called[1].must_equal "docker login --username fo\\+o --password ba\\+r ba\\+z.com" | ||
end | ||
|
||
it "can do a real docker check" do | ||
called # checking that it does not blow up ... result varies depending on if docker is installed | ||
end | ||
end | ||
|
||
it "copies previous config files from ENV location" do | ||
|