From 46f1307ccc1a0002368bf6307748fd23ee38bdaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 31 Aug 2016 18:01:51 +0200 Subject: [PATCH] Add travis --- .travis.yml | 30 ++++++++++++++++++++++++++++++ README.md | 2 ++ qos_server/__init__.py | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .travis.yml 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):