Commit c5c50cd3 authored by Noah Hilverling's avatar Noah Hilverling

Use go mod & disable tests

parent c8990af5
......@@ -72,25 +72,16 @@ Icinga DB
%setup -q
%build
mkdir -p src/%{provider}.%{provider_tld}/%{project}
ln -s ../../../ src/%{import_path}
export GO111MODULE=on
export GOPATH=$(pwd):%{gopath}
pushd src/%{import_path}
%gobuild .
popd
%check
%if ! 0%{?gotest:1}
%global gotest %{?golang_scl_enable} go test
%endif
export GOPATH=$(pwd):%{gopath}
pushd src/%{import_path}
%gotest ./...
popd
#%%gotest ./...
%install
install -d -m 0755 %{buildroot}%{_sbindir}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment