forked from maxmind/GeoIP2-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
45 lines (44 loc) · 1.19 KB
/
.travis.yml
File metadata and controls
45 lines (44 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
language: python
python:
- '2.6'
- '2.7'
- '3.3'
- '3.4'
- '3.5'
- '3.6-dev'
- nightly
- pypy
matrix:
allow_failures:
- python: nightly
before_install:
- git submodule update --init --recursive
- git clone --recursive git://github.com/maxmind/libmaxminddb
- cd libmaxminddb
- ./bootstrap
- ./configure
- make
- sudo make install
- sudo ldconfig
- cd ..
- pip install -e git+https://github.com/maxmind/MaxMind-DB-Reader-python#egg=maxminddb
install:
- pip install -r requirements.txt
- pip install requests_mock pylint coveralls
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2 ipaddr; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install ipaddr; fi"
script:
- coverage run --source=geoip2 setup.py test
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pylint geoip2; fi"
after_success:
- coveralls
notifications:
email:
on_failure: always
on_success: change
recipients:
- dev-ci@maxmind.com
slack:
rooms:
secure: "FZLn7HZnM6GOtIU7+W6tY6zd2y0K4C1ZgIOAiGscWvJydn+Xr63GCT21EPPe9QCulQHz88CWALMD7ZrDdsh6nV0gx0IeE+wq4w7NZYjLokvxs+UMYwuwl57MMrqd7e4byZDC4BLvTQTCvpOHOd8dCHwDXmuBcuyE8zB+Wkndn0I=\n"