forked from openwisp/openwisp-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (47 loc) · 1.38 KB
/
.travis.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
language: python
dist: bionic
cache: pip
python:
- "3.6"
- "3.7"
env:
- DJANGO="django>=2.2,<3.0"
- DJANGO="django>=3.0,<3.1"
addons:
apt:
packages:
- sqlite3
- fping
- gdal-bin
- libproj-dev
- libgeos-dev
- libspatialite-dev
- spatialite-bin
- libsqlite3-mod-spatialite
services:
- docker
- redis-server
branches:
only:
- master
before_install:
- docker run -d --name influxdb -e INFLUXDB_DB=openwisp2 -p 8086:8086 influxdb:alpine
- pip install -U pip wheel setuptools
- pip install $DJANGO
- pip install -U -r requirements-test.txt
install:
- pip install -e .
# To be removed after new release of openwisp-controller
- pip install --upgrade https://github.com/openwisp/openwisp-controller/tarball/master
# Until release of django-netjsonconfig 0.12.0
- pip install --upgrade https://github.com/openwisp/django-netjsonconfig/tarball/master
# temporary: remove when openwisp-notifications is released
- pip install -U https://github.com/openwisp/openwisp-notifications/tarball/master
# To be removed after new release of openwisp-utils
- pip install --upgrade https://github.com/openwisp/openwisp-utils/tarball/master
script:
- ./run-qa-checks
- SAMPLE_APP=1 coverage run --source=openwisp_monitoring runtests.py
- coverage run -a --source=openwisp_monitoring runtests.py
after_success:
coveralls