diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e0d0a16 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +language: python + +cache: pip + +services: + - redis-server + +python: + - "3.3" + - "3.4" + - "3.5" + - "3.5-dev" + - "nightly" + +install: + - pip install coveralls + - pip install codecov + - pip install . + +script: + - coverage run --parallel-mode --source=qos_server qos_server/__init__.py & + - pid=$! + - sleep 5 + - curl http://127.0.0.1:8888/query/www.microsoft.com + - curl http://127.0.0.1:8888/query/80.169.63.162 + - kill -s INT $pid + +after_success: + - codecov + - coveralls diff --git a/README.md b/README.md index 9fead71..11d3f7a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/adulau/pdns-qof-server.svg?branch=master)](https://travis-ci.org/adulau/pdns-qof-server) + Passive DNS server interface ============================ diff --git a/qos_server/__init__.py b/qos_server/__init__.py index 7a36884..7354bbb 100644 --- a/qos_server/__init__.py +++ b/qos_server/__init__.py @@ -26,7 +26,7 @@ import sys import signal from ipaddress import ip_address -from .query import QueryRecords +from qos_server.query import QueryRecords def handle_signal(sig, frame):