-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into use-tf-redis-code-cov
- Loading branch information
Showing
9 changed files
with
31 additions
and
500 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
2 changes: 1 addition & 1 deletion
2
jenkins_pipelines/environments/uyuni-master-dev-acceptance-tests-AWS
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,6 +1,16 @@ | ||
#! /bin/bash | ||
|
||
echo "running rubocop on step files" | ||
rubocop.ruby2.5 -v | ||
cd testsuite | ||
rubocop.ruby2.5 features/* | ||
rubocop_file="testsuite/.rubocop.yml" | ||
if [[ -f "$rubocop_file" ]]; then | ||
# Extract the Ruby version from the file | ||
ruby_version=$(grep "TargetRubyVersion:" "$rubocop_file" | awk '{print $2}') | ||
if [[ -n "$ruby_version" ]]; then | ||
cd testsuite | ||
docker run --rm --volume "$PWD:/app" docker.io/srbarrios/rubocop:ruby-$ruby_version | ||
else | ||
echo "No TargetRubyVersion found in $rubocop_file." | ||
fi | ||
else | ||
echo "File $rubocop_file does not exist." | ||
fi |
Oops, something went wrong.