This repository has been archived by the owner on Sep 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
/
.travis.yml
66 lines (55 loc) · 2.08 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
59
60
61
62
63
64
65
66
language: python
cache: pip
python:
- "3.6"
- "3.7"
services:
- mysql
addons:
postgresql: "9.5"
branches:
only:
- master
env:
matrix:
- DJANGO="django>=2.2,<2.3" DATABASE_URL='mysql://[email protected]/freeradius_test'
- DJANGO="django>=2.2,<2.3" DATABASE_URL='postgres://[email protected]/freeradius_test'
- DJANGO="django>=2.1,<2.2" DATABASE_URL='mysql://[email protected]/freeradius_test'
- DJANGO="django>=2.1,<2.2" DATABASE_URL='postgres://[email protected]/freeradius_test'
- DJANGO="django>=3.0,<3.1" DATABASE_URL='mysql://[email protected]/freeradius_test'
- DJANGO="django>=3.0,<3.1" DATABASE_URL='postgres://[email protected]/freeradius_test'
- SAMPLE_APP=1 DJANGO="django>=2.1,<2.2" DATABASE_URL='mysql://[email protected]/freeradius_test'
- SAMPLE_APP=1 DJANGO="django>=3.0,<3.1" DATABASE_URL='mysql://[email protected]/freeradius_test'
- DJANGO="django>=2.0,<2.1" DATABASE_URL='sqlite:///django-freeradius.db'
- DJANGO="django>=3.0,<3.1" DATABASE_URL='sqlite:///django-freeradius.db'
before_install:
- pip install -U pip wheel
- pip install --no-cache-dir -U -r requirements-test.txt
- npm install -g jslint
- jslint ./django_freeradius/static/django-freeradius/js/*.js
install:
- pip install $DJANGO
- python setup.py -q develop
before_script:
- if [ "$DATABASE_URL" == 'postgres://[email protected]/freeradius_test' ]; then psql -c "CREATE DATABASE freeradius_test;" -U postgres; fi
- mysql -e "CREATE DATABASE IF NOT EXISTS freeradius_test;"
- >
openwisp-utils-qa-checks --migration-path "./django_freeradius/migrations ./tests/sample_radius/migrations"
--skip-checkmakemigrations
- |
if [[ $SAMPLE_APP != "1" ]]; then
openwisp-utils-qa-checks \
--skip-isort \
--skip-flake8 \
--skip-checkmigrations \
--skip-checkendline \
--skip-checkcommit \
--migration-module django_freeradius
fi
- ./runsphinx-build
- ./tests/manage.py migrate
# command to run tests, e.g. python setup.py test
script:
- coverage run --source=django_freeradius runtests.py
after_success:
coveralls