Run all tests.
This commit is contained in:
parent
dddb06082e
commit
4b82cafe51
17
git-lfs.spec
17
git-lfs.spec
@ -56,6 +56,7 @@ BuildRequires: /usr/bin/ronn
|
||||
|
||||
# For tests
|
||||
BuildRequires: golang(github.com/stretchr/testify)
|
||||
BuildRequires: perl-Digest-SHA
|
||||
BuildRequires: git >= 1.8.5
|
||||
|
||||
Requires: git >= 1.8.5
|
||||
@ -113,6 +114,15 @@ export GOPATH=$(pwd):%{gopath}
|
||||
# Build manpages
|
||||
ronn docs/man/*.ronn
|
||||
|
||||
# Build test executables
|
||||
for go in test/cmd/*.go; do
|
||||
go build -o "bin/$(basename $go .go)" "$go"
|
||||
done
|
||||
go build -o "bin/git-lfs-test-server-api" \
|
||||
"test/git-lfs-test-server-api/main.go" \
|
||||
"test/git-lfs-test-server-api/testdownload.go" \
|
||||
"test/git-lfs-test-server-api/testupload.go"
|
||||
|
||||
|
||||
%install
|
||||
install -Dpm0755 bin/git-lfs %{buildroot}%{_bindir}/%{name}
|
||||
@ -174,8 +184,10 @@ exit 0
|
||||
%check
|
||||
%if 0%{?with_check}
|
||||
export GOPATH=%{buildroot}%{gopath}:$(pwd):%{gopath}
|
||||
%gotest %{import_path}/git
|
||||
%gotest %{import_path}/lfs
|
||||
export GIT_LFS_TEST_MAXPROCS=$(getconf _NPROCESSORS_ONLN) SKIPCOMPILE=1
|
||||
pushd src/%{provider}.%{provider_tld}/%{project}/%{name}
|
||||
./script/cibuild
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
@ -200,6 +212,7 @@ export GOPATH=%{buildroot}%{gopath}:$(pwd):%{gopath}
|
||||
%changelog
|
||||
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.3.4-1
|
||||
- Update to latest release.
|
||||
- Run all tests during build.
|
||||
|
||||
* Fri Sep 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.2.1-3
|
||||
- Remove redundant doc tag on manpages.
|
||||
|
Loading…
Reference in New Issue
Block a user