forked from openwisp/django-freeradius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (43 loc) · 1.73 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
language: python
sudo: false
cache: pip
python:
- "3.4"
- "2.7"
branches:
only:
- master
env:
matrix:
- DJANGO="django>=1.11,<1.12" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test'
- DJANGO="django>=1.11,<1.12" DATABASE_URL='postgres://postgres@127.0.0.1/freeradius_test'
- DJANGO="django>=1.11,<1.12" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test' SAMPLE_APP=1
- DJANGO="django>=2.0,<2.1" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test'
- DJANGO="django>=2.0,<2.1" DATABASE_URL='postgres://postgres@127.0.0.1/freeradius_test'
- DJANGO="django>=2.0,<2.1" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test' SAMPLE_APP=1
matrix:
exclude:
- python: "2.7"
env: DJANGO="django>=2.0,<2.1" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test'
- python: "2.7"
env: DJANGO="django>=2.0,<2.1" DATABASE_URL='postgres://postgres@127.0.0.1/freeradius_test'
- python: "2.7"
env: DJANGO="django>=2.0,<2.1" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test' SAMPLE_APP=1
before_install:
- pip install --no-cache-dir -U -r requirements-test.txt
- ./runflake8
- ./runisort
- npm install -g jslint
install:
- pip install $DJANGO
- python setup.py -q develop
before_script:
- ./runsphinx-build
- if [ "$DATABASE_URL" == 'postgres://postgres@127.0.0.1/freeradius_test' ]; then psql -c "create database freeradius_test;" -U postgres; fi
- if [ "$DATABASE_URL" == 'mysql://root@127.0.0.1/freeradius_test']; then mysql -e "create database IF NOT EXISTS freeradius_test;"; fi
# command to run tests, e.g. python setup.py test
script:
- jslint ./django_freeradius/static/django-freeradius/js/*.js
- coverage run --source=django_freeradius runtests.py
after_success:
coveralls