-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy path.travis.yml
46 lines (46 loc) · 1.48 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
40
41
42
43
44
45
46
jobs:
include:
#---------linux---------
- name: "Python 3.6.5 on Linux"
language: python
os: linux
dist: xenial
python:
- 3.6
cache: pip
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS pytest_testdb;'
install:
- pip3 install -r requirements.txt
before_script:
- black --check .
script:
- flake8 . --count --select=E101,E722,E9,F4,F63,F7,F82,W191 --show-source --statistics
- flake8 . --count --exit-zero --max-line-length=127 --statistics
- pytest -v --ignore test_chatbot.py
#---------osx---------------
- name: "Python 3.6.5 on macOS 10.14"
os: osx
osx_image: xcode11.3
addons:
homebrew:
packages:
- mysql
update: true
language: shell #python language gives an error on TravisCI MacOS
cache: pip3
before_install:
- mysql.server start
#- mysql -uroot
- mysql -uroot -e 'create database pytest_testdb;'
#- mysql -e 'CREATE DATABASE IF NOT EXISTS pytest_testdb;'
install:
- pip3 install -r requirements.txt
before_script:
- black --check .
script:
- flake8 . --count --select=E101,E722,E9,F4,F63,F7,F82,W191 --show-source --statistics
- flake8 . --count --exit-zero --max-line-length=127 --statistics
- pytest -v --ignore test_chatbot.py