Skip to content

Commit

Permalink
Muy buena aproximacion a CI
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuelgg committed Aug 26, 2022
1 parent 4bfe23c commit ef758ea
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions scripts/git-hooks/pre-push
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

0 comments on commit ef758ea

Please sign in to comment.