forked from chaoss/grimoirelab-sirmordred
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (30 loc) · 1.01 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
language: python
python:
- "3.4"
sudo: false
services:
- elasticsearch
# - mysql
# addons:
# mariadb: '10.0'
before_install:
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.0.deb && sudo dpkg -i --force-confnew elasticsearch-6.1.0.deb && sudo service elasticsearch restart
- 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
- coverage run --source=sirmordred run_tests.py
after_success:
- coveralls