Skip to content

Instantly share code, notes, and snippets.

View Ohmry's full-sized avatar

Lee ByungHoon Ohmry

View GitHub Profile
#!/bin/bash
# README: A more updated version is on the comments by (ashmna)[https://gist.github.com/ashmna]
# See at: https://gist.github.com/allangarcia/938b052a7d55d1652052e4259364260b?permalink_comment_id=4265898#gistcomment-4265898
# this is for tools required
brew update
brew install ninja
brew install cmake
@hdznrrd
hdznrrd / pre-push.sh
Created June 20, 2016 11:37
git pre-push hook running build & tests using maven and only pushing if tests succeeded
#!/bin/sh
# git pre-push hook running build & tests using maven and only pushing if tests succeeded
#
# will do a local check-out of your currentl commit state and see if that one builds.
# this will spare you nasty surprises from missing to add files or having broken partially commited files
#
PWD=$(pwd)
ROOT="file://$(git rev-parse --show-toplevel)"
TMP=$(mktemp -d)