forked from openwisp/openwisp-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (50 loc) · 1.32 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
58
language: python
cache: pip
dist: bionic
addons:
apt:
packages:
- sqlite3
- gdal-bin
- libproj-dev
- libgeos-dev
- libspatialite-dev
- spatialite-bin
- libsqlite3-mod-spatialite
python:
- "3.6"
- "3.7"
env:
- DJANGO="django>=2.2,<2.3"
- DJANGO="django>=3.0,<3.1"
branches:
only:
- master
before_install:
- export PIPENV_IGNORE_VIRTUALENVS=1
- pipenv run install_dev
- pip install -U pipenv
- pipenv install --dev --skip-lock
- pipenv run lint
- npm install -g jslint
install:
- export PIPENV_IGNORE_VIRTUALENVS=1
- pipenv install --skip-lock $DJANGO
- pipenv run pip freeze
script:
- export PIPENV_IGNORE_VIRTUALENVS=1
# for some reason the migrations check is failing only on django 2.0
- jslint openwisp_controller/pki/static/pki/js/*.js
- |
pipenv run openwisp-utils-qa-checks \
--migration-path \
"./openwisp_controller/config/migrations \
./openwisp_controller/connection/migrations \
./openwisp_controller/geo/migrations \
./openwisp_controller/pki/migrations" \
--migrations-to-ignore "12 0 0 4" \
--migration-module "config connection geo pki";
- pipenv run pytest --cov=openwisp_controller
- pipenv run coverage run -a --source=openwisp_controller runtests.py
after_success:
pipenv run coveralls