Build every commit in isolated Docker container.
curl -fsSL https://raw.githubusercontent.com/mgryszko/git-build-hooks/master/maven-build > .git/hooks/post-commit && chmod +x .git/hooks/post-commit
curl -fsSL https://raw.githubusercontent.com/mgryszko/git-build-hooks/master/gradle-build > .git/hooks/post-commit && chmod +x .git/hooks/post-commit