-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add shellcheck to circleci #2835
Changes from 8 commits
08bd06d
c147839
99c8d4a
33dcf88
7d4f3d3
1bbb1d3
9e657f7
a0cb34d
a27e282
9b00598
fc5cb2a
7ae40aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source $HOME/.profile | ||
# shellcheck disable=SC1091 | ||
source "$HOME"/.profile | ||
|
||
go get -u -d github.com/ory/hydra | ||
go get -d -u github.com/devopsfaith/krakend-examples/gin | ||
(cd $HOME/hydra-login-consent-node; git pull -ff; npm i) | ||
cd $HOME | ||
(cd "$HOME"/hydra-login-consent-node || exit; git pull -ff; npm i) | ||
cd "$HOME" || exit | ||
go install github.com/ory/hydra | ||
go install github.com/devopsfaith/krakend-examples/gin | ||
go install github.com/devopsfaith/krakend-examples/gin |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,6 @@ hydra clients create \ | |
--endpoint http://localhost:9001 | ||
|
||
echo "Generating initial access tokens for token introspection benchmark" | ||
authToken=$(hydra token client --endpoint http://localhost:9000 --client-id $clientId --client-secret $clientSecret) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was an unused variable, so it was removed. |
||
introToken=$(hydra token client --endpoint http://localhost:9000 --client-id $clientId --client-secret $clientSecret) | ||
|
||
cat >> BENCHMARKS.md << EOF | ||
|
@@ -94,6 +93,7 @@ hey -n $numReqs -c $numParallel -m POST \ | |
| tee -a BENCHMARKS.md | ||
|
||
|
||
# shellcheck disable=SC2006 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I set it to disable because it is a backtick that is written in markdown. |
||
cat >> BENCHMARKS.md << EOF | ||
\`\`\` | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
cd "$( dirname "${BASH_SOURCE[0]}" )" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was an unused variable, so it was removed.
https://github.com/koalaman/shellcheck/wiki/SC2034