-
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.
Add a 'verify.sh' script to be the 'run-build' command
Ideally running a build is just a gradle command, but to even make that easy, we have 'verify.sh'
- Loading branch information
1 parent
92e6bbe
commit 0cb2772
Showing
3 changed files
with
9 additions
and
2 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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
# We skip 'spotlessApply' such that only 'spotlessCheck' will run to validate formatting. | ||
# This is a good setup for a CI server, meanwhile if a developer runs 'verify', they | ||
# will have the 'spotlessApply' task run to automatically format the code. | ||
run: ./verify --exclude-task spotlessApply | ||
run: ./verify.sh --exclude-task spotlessApply | ||
|
||
# - name: Load SSH private key into ssh-agent | ||
# uses: webfactory/[email protected] | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ triplea.github.access.token=CHANGE_ME | |
## Building | ||
|
||
``` | ||
./gradlew check | ||
./verify.sh | ||
``` | ||
|
||
## Running | ||
|
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
scriptDir="$(dirname "$0")" | ||
set -o pipefail | ||
set -eu | ||
|
||
"$scriptDir/gradlew" spotlessApply check $@ |