forked from openwisp/django-ipam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (34 loc) · 830 Bytes
/
.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
language: python
sudo: false
cache: pip
python:
- "3.5"
branches:
only:
- master
env:
matrix:
- '' # main tests
- SAMPLE_APP=1 # sample app tests
before_install:
- pip install --no-cache-dir -U -r requirements-test.txt
- ./runflake8
- ./runisort
- ./runcheckmigration
- npm install -g jslint
- jslint ./django_ipam/static/django-ipam/js/*.js
install:
- pip install "django>=2.0,<2.2"
- python setup.py -q develop
before_script:
- |
if [[ $TRAVIS_PYTHON_VERSION == 3.5 && $SAMPLE_APP != "1" ]]; then
OUTPUT=$(./tests/manage.py makemigrations --dry-run django_ipam)
echo $OUTPUT
echo $OUTPUT | grep "No changes detected"
fi
# command to run tests, e.g. python setup.py test
script:
- coverage run --source=django_ipam runtests.py
after_success:
- coveralls