forked from litaotao/IPython-Dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (32 loc) · 816 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
# travis-ci configuration
language: python
python:
- "2.7"
# - "3.3"
# - "3.4"
install:
- pip install -e . --use-mirrors
- pip install coveralls --use-mirrors
- pip install flake8 coverage --use-mirrors
services:
- redis-server
- mysql
before_script:
# make logs template
- cd /mnt
- sudo mkdir ipython-dashboard
- sudo chmod 777 ipython-dashboard
- cd ipython-dashboard
- sudo mkdir logs
- sudo chmod 777 logs
# mysql create user
- echo "create user 'ipd'@'localhost' identified by 'thanks';" | mysql -u root
- echo "grant all privileges on *.* to ipd@localhost;" | mysql -u root
script:
- sudo service mysql restart
- cd $TRAVIS_BUILD_DIR
- ls -ltr .
- nosetests --with-coverage --cover-package=dashboard
- flake8 --exit-zero dashboard
after_success:
- coveralls