Skip to content

Commit aef44a2

Browse files
authored
Merge pull request #17 from essentialkaos/develop
Improvements
2 parents 1070223 + bca0113 commit aef44a2

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

.travis.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sudo: false
1+
sudo: required
22

33
language: go
44

@@ -11,18 +11,29 @@ go:
1111
os:
1212
- linux
1313

14+
services:
15+
- docker
16+
1417
branches:
1518
only:
1619
- master
1720
- develop
1821

22+
env:
23+
global:
24+
- IMAGE=essentialkaos/perfecto:centos7
25+
1926
matrix:
2027
fast_finish: true
2128
allow_failures:
2229
- go: tip
2330

2431
before_install:
32+
- docker pull "$IMAGE"
33+
- wget https://raw.githubusercontent.com/essentialkaos/perfecto/master/perfecto-docker
34+
- chmod +x perfecto-docker
2535
- make deps
2636

2737
script:
2838
- make all
39+
- ./perfecto-docker common/redis-latency-monitor.spec

common/redis-latency-monitor.spec

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
###############################################################################
1+
################################################################################
22

33
# rpmbuilder:relative-pack true
44

5-
###############################################################################
5+
################################################################################
66

77
%define debug_package %{nil}
88

9-
###############################################################################
9+
################################################################################
1010

1111
Summary: Tiny Redis client for latency measurement
1212
Name: redis-latency-monitor
@@ -24,19 +24,19 @@ BuildRequires: golang >= 1.8
2424

2525
Provides: %{name} = %{version}-%{release}
2626

27-
###############################################################################
27+
################################################################################
2828

2929
%description
30-
Tiny Redis client for latency measurement. Utility show PING command latency
30+
Tiny Redis client for latency measurement. Utility show PING command latency
3131
or connection latency in milliseconds (one thousandth of a second).
3232

33-
###############################################################################
33+
################################################################################
3434

3535
%prep
3636
%setup -q
3737

3838
%build
39-
export GOPATH=$(pwd)
39+
export GOPATH=$(pwd)
4040
go build src/github.com/essentialkaos/%{name}/%{name}.go
4141

4242
%install
@@ -48,14 +48,14 @@ install -pm 755 %{name} %{buildroot}%{_bindir}/
4848
%clean
4949
rm -rf %{buildroot}
5050

51-
###############################################################################
51+
################################################################################
5252

5353
%files
5454
%defattr(-,root,root,-)
5555
%doc LICENSE.EN LICENSE.RU
5656
%{_bindir}/%{name}
5757

58-
###############################################################################
58+
################################################################################
5959

6060
%changelog
6161
* Thu Dec 21 2017 Anton Novojilov <[email protected]> - 3.0.1-0

0 commit comments

Comments
 (0)