forked from chaoss/grimoirelab-sirmordred
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (28 loc) · 844 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
language: python
python:
- "3.4"
sudo: false
services:
- elasticsearch
# - mysql
# addons:
# mariadb: '10.0'
# sleep to wait for Elasticsearch init
before_install:
- sleep 5
- pip install pandas==0.18.1
- pip install httpretty==0.8.6
- pip install -r "requirements.txt"
- pip install flake8
- pip install coveralls
# install:
# - ./setup.py install
# To avoid: pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')
# before_script:
# - echo -e "[mysqld]\nnet_read_timeout=180\nnet_write_timeout=180\nmax_allowed_packet=16M\nwait_timeout=2592000\ninteractive_timeout=2592000\nmax_connections=300" | sudo tee -a /etc/mysql/my.cnf
# - cat /etc/mysql/my.cnf
# - sudo service mysql restart
# - echo 'SHOW VARIABLES' | mysql -u root
script:
- flake8 .
- cd tests && ./run_tests.py