Skip to content

Commit e6f5394

Browse files
author
Igor Živković
committed
fix travis script
1 parent 12bcbaf commit e6f5394

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828
"bug",
2929
"code"
3030
]
31+
},
32+
{
33+
"login": "lara-isak",
34+
"name": "Lara Isak",
35+
"avatar_url": "https://avatars1.githubusercontent.com/u/17933540?v=4",
36+
"profile": "https://github.com/lara-isak",
37+
"contributions": [
38+
"ideas"
39+
]
3140
}
3241
]
3342
}

.travis.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@ before_install:
88
script:
99
- |
1010
./tinyproxy_exporter &
11-
PID=$!
1211
sleep 1
13-
kill $PID
14-
sudo rm /usr/share/tinyproxy/stats.html
15-
./tinyproxy_exporter &
16-
PID=$!
17-
sleep 1
18-
kill -15 $PID
12+
if [ "$(pidof python3)" ]
13+
then
14+
kill "$(pidof python3)"
15+
sudo rm /usr/share/tinyproxy/stats.html
16+
sudo service tinyproxy restart
17+
./tinyproxy_exporter &
18+
sleep 1
19+
if [ "$(pidof python3)" ]
20+
then
21+
kill "$(pidof python3)"
22+
else
23+
exit 1
24+
fi
25+
else
26+
exit 1
27+
fi

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tinyproxy_exporter
22
[![Build Status](https://travis-ci.com/igzivkov/tinyproxy_exporter.svg?branch=master)](https://travis-ci.com/igzivkov/tinyproxy_exporter)
3-
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)
44

55
A simple Prometheus exporter for Tinyproxy.
66

@@ -26,8 +26,8 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
2626

2727
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
2828
<!-- prettier-ignore -->
29-
| [<img src="https://avatars1.githubusercontent.com/u/1630197?v=4" width="100px;"/><br /><sub><b>Igor Živković</b></sub>](https://github.com/igzivkov)<br />[💻](https://github.com/igzivkov/tinyproxy_exporter/commits?author=igzivkov "Code") [📖](https://github.com/igzivkov/tinyproxy_exporter/commits?author=igzivkov "Documentation") | [<img src="https://avatars3.githubusercontent.com/u/1065028?v=4" width="100px;"/><br /><sub><b>Vitor Arins</b></sub>](https://github.com/vitorarins)<br />[🐛](https://github.com/igzivkov/tinyproxy_exporter/issues?q=author%3Avitorarins "Bug reports") [💻](https://github.com/igzivkov/tinyproxy_exporter/commits?author=vitorarins "Code") |
30-
| :---: | :---: |
29+
| [<img src="https://avatars1.githubusercontent.com/u/1630197?v=4" width="100px;"/><br /><sub><b>Igor Živković</b></sub>](https://github.com/igzivkov)<br />[💻](https://github.com/igzivkov/tinyproxy_exporter/commits?author=igzivkov "Code") [📖](https://github.com/igzivkov/tinyproxy_exporter/commits?author=igzivkov "Documentation") | [<img src="https://avatars3.githubusercontent.com/u/1065028?v=4" width="100px;"/><br /><sub><b>Vitor Arins</b></sub>](https://github.com/vitorarins)<br />[🐛](https://github.com/igzivkov/tinyproxy_exporter/issues?q=author%3Avitorarins "Bug reports") [💻](https://github.com/igzivkov/tinyproxy_exporter/commits?author=vitorarins "Code") | [<img src="https://avatars1.githubusercontent.com/u/17933540?v=4" width="100px;"/><br /><sub><b>Lara Isak</b></sub>](https://github.com/lara-isak)<br />[🤔](#ideas-lara-isak "Ideas, Planning, & Feedback") |
30+
| :---: | :---: | :---: |
3131
<!-- ALL-CONTRIBUTORS-LIST:END -->
3232

3333
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!

0 commit comments

Comments
 (0)