Skip to content

Commit 5c4bfd0

Browse files
author
Stepan Oksanichenko
committed
CMT-18: [End Server tools] Build node exporter from sources in cloudlinux
- Add *.spec file
1 parent e0d0641 commit 5c4bfd0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

node_exporter.spec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,14 @@ curl https://dl.google.com/go/go1.14.4.linux-386.tar.gz --output %{_tmppath}/go.
3232
tar xzf %{_tmppath}/go.tar.gz -C %{_tmppath}
3333
export PATH=$PATH:%{_tmppath}/go/bin
3434
export GOROOT=%{_tmppath}/go
35-
export GOPATH=%{_tmppath}/%{name}-%{version}-%{release}-buildroot
35+
export GOPATH=%{_tmppath}
3636
make build
3737
rm -rf "${GOROOT}"
3838

3939

4040
%check
4141
cd "${GOPATH}"
42-
echo ">> running end-to-end tests"
43-
./end-to-end-test.sh
44-
echo ">> running end-to-end tests with unix socket"
45-
./end-to-end-test.sh -s
42+
make test
4643

4744

4845
%install

0 commit comments

Comments
 (0)