Created
March 10, 2017 15:09
-
-
Save r0xsh/46b80d60425a3eb9a4b0f50084e29fd8 to your computer and use it in GitHub Desktop.
Git hook, run Rust lang unit test
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
#!/bin/sh | |
REPO_NAME=papers_database | |
GIT_DIR=$HOME/$REPO_NAME.git | |
WORK_DIR=$HOME/work/$REPO_NAME | |
mkdir -p $WORK_DIR | |
git --work-tree=$WORK_DIR --git-dir=$GIT_DIR checkout -f | |
cd $WORK_DIR | |
export PATH="$HOME/.cargo/bin:$PATH" | |
cargo test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment