Skip to content

Commit 2be2e94

Browse files
committed
Add email & slack notifications
1 parent 10dd680 commit 2be2e94

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.travis.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
---
12
language: python
2-
33
python:
4-
- 2.6
5-
- 2.7
6-
- 3.3
7-
- 3.4
4+
- '2.6'
5+
- '2.7'
6+
- '3.3'
7+
- '3.4'
88
- pypy
9-
109
before_install:
1110
- git submodule update --init --recursive
1211
- git clone --recursive git://github.com/maxmind/libmaxminddb
@@ -18,23 +17,22 @@ before_install:
1817
- sudo ldconfig
1918
- cd ..
2019
- pip install -e git+https://github.com/maxmind/MaxMind-DB-Reader-python#egg=maxminddb
21-
2220
install:
2321
- pip install -r requirements.txt
2422
- pip install requests_mock pylint coveralls
25-
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2 ipaddr; fi
26-
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install ipaddr; fi
27-
23+
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2 ipaddr; fi"
24+
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install ipaddr; fi"
2825
script:
2926
- coverage run --source=geoip2 setup.py test
30-
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pylint geoip2; fi
31-
27+
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pylint geoip2; fi"
3228
after_success:
3329
- coveralls
34-
3530
notifications:
3631
email:
32+
on_failure: always
33+
on_success: change
3734
recipients:
3835
39-
on_success: change
40-
on_failure: always
36+
slack:
37+
rooms:
38+
secure: "FZLn7HZnM6GOtIU7+W6tY6zd2y0K4C1ZgIOAiGscWvJydn+Xr63GCT21EPPe9QCulQHz88CWALMD7ZrDdsh6nV0gx0IeE+wq4w7NZYjLokvxs+UMYwuwl57MMrqd7e4byZDC4BLvTQTCvpOHOd8dCHwDXmuBcuyE8zB+Wkndn0I=\n"

0 commit comments

Comments
 (0)