-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·44 lines (37 loc) · 919 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
44
language:
- python
- node_js
# test using these versions of python
python:
- "2.6"
- "2.7"
- "pypy"
# test using these versions of javascript
node_js:
- "0.11"
- "0.10"
# command to install dependencies
install:
- pip install -q -r scripts/requirements.txt --extra-index-url https://pypi.crate.io/simple/
- npm install
# setup mysql
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- mysql -e 'create database gateway;'
- mysqladmin -u root password "root"
- python manage.py syncdb --noinput
- python manage.py loaddata fixture/venture.yaml
# command to run tests
script:
- pep8 . --exclude bootstrap
# - karma start --single-run --browsers Firefox
- jshint .
- radon cc manage.py test
- radon mi manage.py test
- coverage run --source gateway manage.py test gateway.tests
after_success:
- coveralls
matrix:
allow_failures:
- python: "pypy"