forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bundler `script/ci-test` bash codes and conform scripts to use `bin/bash`. Native helper specs are not being run as the script/ci-test currently bails out with: ``` ./script/ci-test: 7: [: bundler1: unexpected operator ./script/ci-test: 14: [: bundler1: unexpected operator ```
- Loading branch information
Showing
22 changed files
with
80 additions
and
46 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
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
bundle exec rspec spec | ||
|
||
if [ "$SUITE_NAME" == "bundler1" ]; then | ||
cd helpers/v1 && \ | ||
BUNDLER_VERSION=1 bundle install && \ | ||
BUNDLER_VERSION=1 bundle exec rspec spec &&\ | ||
cd - | ||
if [[ "$SUITE_NAME" == "bundler1" ]]; then | ||
cd helpers/v1 \ | ||
&& BUNDLER_VERSION=1 bundle install \ | ||
&& BUNDLER_VERSION=1 bundle exec rspec spec\ | ||
&& cd - | ||
fi | ||
|
||
if [ "$SUITE_NAME" == "bundler2" ]; then | ||
cd helpers/v2 && \ | ||
BUNDLER_VERSION=2 bundle install && \ | ||
BUNDLER_VERSION=2 bundle exec rspec spec &&\ | ||
cd - | ||
if [[ "$SUITE_NAME" == "bundler2" ]]; then | ||
cd helpers/v2 \ | ||
&& BUNDLER_VERSION=2 bundle install \ | ||
&& BUNDLER_VERSION=2 bundle exec rspec spec \ | ||
&& cd - | ||
fi |
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,3 +1,5 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
exit 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo "$@" |
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|
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,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
bundle install | ||
bundle exec rubocop . | ||
|