diff --git a/.travis.yml b/.travis.yml index ea1a053f0..928cf5753 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,34 +1,48 @@ language: python +sudo: false +dist: bionic + cache: pip +python: + - "3.6" + - "3.7" + addons: apt: packages: - sqlite3 + - fping - gdal-bin - libproj-dev - libgeos-dev - libspatialite-dev + - spatialite-bin + - libsqlite3-mod-spatialite -python: - - "3.6" +services: + - docker + - redis-server branches: only: - master before_install: + - docker run -d --name influxdb -p 8086:8086 influxdb + - docker exec -it influxdb influx -execute 'CREATE DATABASE openwisp2' - pip install -U pip wheel setuptools - - pip install --no-cache-dir -U -r requirements-test.txt - - ./runflake8 - - ./runisort + - pip install --no-cache-dir -U -r requirements.txt -r requirements-test.txt install: - python setup.py -q develop script: + - | + openwisp-utils-qa-checks \ + --migration-path ./openwisp_monitoring/monitoring \ + --migration-module monitoring - coverage run --source=openwisp_monitoring runtests.py - ./tests/manage.py makemigrations monitoring device check --dry-run | grep "No changes detected"; after_success: coveralls diff --git a/README.rst b/README.rst index 165af298b..8dca4b7d8 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,12 @@ openwisp-monitoring =================== +.. image:: https://travis-ci.com/openwsip/openwisp-monitoring.svg?branch=master + :target: https://travis-ci.com/openwisp/openwisp-monitoring + +.. image:: https://coveralls.io/repos/github/openwisp/openwisp-monitoring/badge.svg?branch=master + :target: https://coveralls.io/github/openwisp/openwisp-monitoring?branch=master + ------------ OpenWISP 2 monitoring module (Work in progress). diff --git a/requirements-test.txt b/requirements-test.txt index 6efaf7ae1..595a70126 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,3 +1,4 @@ +coveralls openwisp-utils[qa]>=0.4.0 redis django-redis diff --git a/requirements.txt b/requirements.txt index 026398f31..545b35d1e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +cryptography<2.9.0,>=2.4.0 openwisp-controller>=0.5.0,<0.6.0 influxdb>=5.2,<5.3 django-notifications-hq>=1.6,<1.7