-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bfe23c
commit ef758ea
Showing
1 changed file
with
21 additions
and
5 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,11 +1,27 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
# Run Unit tests | ||
./gradlew test | ||
# Run Unit tests & Build the library jars | ||
./gradlew clean build | ||
|
||
# Build the library jars | ||
./gradlew build | ||
# Clean the docs directory from autogenerated files | ||
rm -rf docs/javadoc && rm -rf docs/test | ||
|
||
# Copy the javadoc to the docs folder to host it online in github-pages | ||
./gradlew copy | ||
./gradlew copy | ||
|
||
if test $(git diff --name-only dist | wc -l) != 0 | ||
then | ||
cat <<\EOF | ||
Error: Not all the tracked files were ready for a push. | ||
Maybe you were intentionally letting dist/ behind. | ||
dist/ is tracked so the project could be imported from github. | ||
If you know what you are doing you can disable this check using: | ||
git push --no-verify | ||
EOF | ||
exit 1 | ||
fi |