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
|
||||
|
||||
# Modify Makefile so that it expects binaries where we build them.
|
||||
sed -i -e 's!/bin/!/_bin/!g' t/Makefile
|
||||
|
||||
|
||||
%build
|
||||
%gobuildroot
|
||||
@ -96,14 +99,12 @@ exit 0
|
||||
|
||||
%check
|
||||
%gochecks
|
||||
export GOPATH=%{buildroot}%{gopath}:$(pwd):%{gopath}
|
||||
export GIT_LFS_TEST_MAXPROCS=$(getconf _NPROCESSORS_ONLN) SKIPCOMPILE=1
|
||||
pushd _build/src/%{goipath}
|
||||
./script/cibuild
|
||||
popd
|
||||
PATH=%{buildroot}%{_bindir}:$PWD/_bin:$PATH \
|
||||
make -C t PROVE_EXTRA_ARGS="-j$(getconf _NPROCESSORS_ONLN)"
|
||||
|
||||
|
||||
%files
|
||||
%doc README.md CHANGELOG.md
|
||||
%license LICENSE.md
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man1/%{name}*.1*
|
||||
|
Loading…
Reference in New Issue
Block a user