Move git-check-assertions to bin/
This commit is contained in:
parent
601a51109d
commit
a82e98d775
3 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ resholve.mkDerivation {
|
||||||
src = fs.toSource {
|
src = fs.toSource {
|
||||||
root = ./.;
|
root = ./.;
|
||||||
fileset = fs.unions [
|
fileset = fs.unions [
|
||||||
./git-check-assertions
|
./bin/git-check-assertions
|
||||||
./test.bats
|
./test.bats
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -37,7 +37,7 @@ resholve.mkDerivation {
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
shellcheck git-check-assertions test.bats
|
shellcheck bin/git-check-assertions test.bats
|
||||||
git init
|
git init
|
||||||
git config user.email test
|
git config user.email test
|
||||||
git config user.name test
|
git config user.name test
|
||||||
|
|
@ -52,7 +52,7 @@ resholve.mkDerivation {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp $src/git-check-assertions $out/bin/git-check-assertions
|
cp $src/bin/git-check-assertions $out/bin/git-check-assertions
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
||||||
PATH="$DIR:$PATH"
|
PATH="$DIR/bin:$PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "can run" {
|
@test "can run" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue