Skip to content

Commit

Permalink
[CI] Configured travis builds #15
Browse files Browse the repository at this point in the history
Closes #15
  • Loading branch information
pandafy committed Apr 4, 2020
1 parent 65cfac7 commit 81a417e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coveralls
openwisp-utils[qa]>=0.4.0
redis
django-redis
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 81a417e

Please sign in to comment.