git-lfs/docker/test_lfs.bsh
2015-11-18 11:32:52 -07:00

18 lines
422 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
git lfs install
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
mkdir /tmp/lfs-test-dir
cp -ra /src /tmp/test/
cd /tmp/test
mkdir -p ./src/github.com/github
unlink src/github.com/github/git-lfs || :
ln -sf $(pwd) src/github.com/github/git-lfs
LFS_BIN=1 GOPATH=$(pwd) ./script/test
LFS_BIN=1 GIT_LFS_TEST_DIR=/tmp/lfs-test-dir ./script/integration