-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
35 lines (27 loc) · 821 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
language: python
branches:
only:
- master
- dev
python:
- "2.7"
- "3.4"
- "3.5"
# command to install dependencies
install:
- pip install -r requirements.txt
- pip freeze
- pip install coveralls
services:
- mysql
before_install:
- sudo apt-get install python-dev python3-dev
before_script:
- mysql -u root -e 'create database lychee_ci DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'
- mysql -u root -e "create user 'lychee_ci'@'localhost' IDENTIFIED BY 'lychee_ci';"
- mysql -u root -e "GRANT ALL ON lychee_ci.* TO 'lychee_ci'@'localhost';"
# command to run tests
script:
coverage run -m --source ./lycheesync py.test -c ./ressources/pytest.ini --showlocals --duration=3 -v -s --confpath=${PWD}/ressources/test_conf.json
after_success:
- coveralls