-
Notifications
You must be signed in to change notification settings - Fork 162
/
.travis.yml
29 lines (29 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
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
env: XENIAL=true
dist: xenial
sudo: true
before_script:
- if [ "$XENIAL" = true ] ; then sudo apt-get update; fi
- if [ "$XENIAL" = true ] ; then sudo apt-get install -y mysql-server; fi
- if [ "$XENIAL" = true ] ; then sudo service mysql restart; fi
- if [ "$XENIAL" = true ] ; then sudo service postgresql restart; fi
- if [ "$XENIAL" = true ] ; then which mysql && until mysql -u root -e "show status" &>/dev/null; do sleep 1; done; fi
- mysql -e 'create database flask_blogging;'
- psql -c 'create database flask_blogging;' -U postgres;
install:
- pip install -e .
- pip install coverage pep8 mysqlclient==1.3.6 psycopg2 Flask-Sqlalchemy==2.2
script:
- nosetests --with-coverage --cover-package=flask_blogging --cover-min-percentage=85 -v
- pep8 --repeat flask_blogging/ test/
notifications:
email: false