mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-18 15:26:58 +00:00
19941f91f4
* Adds release-ci script to test installation * Fixes CI * Fixes CI * Renames some variables to follow the same SECRETS_ convention
18 lines
393 B
Bash
18 lines
393 B
Bash
#!/usr/bin/env bats
|
|
|
|
: "${TMPDIR:=/tmp}"
|
|
|
|
INSTALL_BASE="${TMPDIR}/git-secret-test-install"
|
|
|
|
|
|
@test "install git-secret to DESTDIR='$INSTALL_BASE'" {
|
|
rm -f "$INSTALL_BASE/usr/bin/git-secret"
|
|
cd "$SECRETS_PROJECT_ROOT"
|
|
|
|
# set DESTDIR for this command and 'run' make install
|
|
DESTDIR="$INSTALL_BASE" run make install
|
|
|
|
[ -x "$INSTALL_BASE/usr/bin/git-secret" ]
|
|
rm -rf "$INSTALL_BASE"
|
|
}
|