gitnu 0.1.4

gitnu indexes your git status so you can use numbers instead of filenames.
Documentation
#!/usr/bin/env bash

EC=0
[[ $1 == '-k' ]] && KEEP=1

teardown() {
  [ -z $KEEP ] && rm -rf tmp
  exit $EC
}
trap teardown EXIT

mkdir tmp >/dev/null

# run unit tests
[ -d tmp ] && cargo test || EC=1

# run integration tests
pushd tests/integration >/dev/null
bash run || EC=1
popd >/dev/null