Switch to upstream's testing Makefile.
This commit is contained in:
parent
6612d3e25f
commit
4b5133ce06
11
git-lfs.spec
11
git-lfs.spec
@ -55,6 +55,9 @@ which use import path with %{goipath} prefix.
|
|||||||
|
|
||||||
rm -rf vendor
|
rm -rf vendor
|
||||||
|
|
||||||
|
# Modify Makefile so that it expects binaries where we build them.
|
||||||
|
sed -i -e 's!/bin/!/_bin/!g' t/Makefile
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%gobuildroot
|
%gobuildroot
|
||||||
@ -96,14 +99,12 @@ exit 0
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%gochecks
|
%gochecks
|
||||||
export GOPATH=%{buildroot}%{gopath}:$(pwd):%{gopath}
|
PATH=%{buildroot}%{_bindir}:$PWD/_bin:$PATH \
|
||||||
export GIT_LFS_TEST_MAXPROCS=$(getconf _NPROCESSORS_ONLN) SKIPCOMPILE=1
|
make -C t PROVE_EXTRA_ARGS="-j$(getconf _NPROCESSORS_ONLN)"
|
||||||
pushd _build/src/%{goipath}
|
|
||||||
./script/cibuild
|
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%doc README.md CHANGELOG.md
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_mandir}/man1/%{name}*.1*
|
%{_mandir}/man1/%{name}*.1*
|
||||||
|
Loading…
Reference in New Issue
Block a user