forked from singingwolfboy/flask-dance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (38 loc) · 982 Bytes
/
Copy path.travis.yml
File metadata and controls
40 lines (38 loc) · 982 Bytes
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
sudo: false
language: python
cache: pip
python:
- 2.7
- 3.4
- 3.5
- 3.6
addons:
postgresql: "9.4"
env:
- BLINKER=1 DATABASE_URI=postgresql://localhost/travis_ci_test
- BLINKER=1 DATABASE_URI=sqlite://
- BLINKER=0 DATABASE_URI=sqlite://
matrix:
include:
- name: "Black"
python: 3.6
install: travis_retry pip install black
script: black --check .
after_success: skip
branches:
only:
- master
before_script:
- if [[ $DATABASE_URI == postgresql* ]]; then psql -c 'create database travis_ci_test;' -U postgres; fi
install:
- travis_retry pip install -U pytest
- travis_retry pip install -r requirements.txt
- travis_retry pip install -r dev-requirements.txt
- if [[ $BLINKER == 1 ]]; then travis_retry pip install blinker; fi
- if [[ $DATABASE_URI == postgresql* ]]; then travis_retry pip install psycopg2; fi
- travis_retry pip install codecov
- pip install -e .
script:
- py.test --cov=flask_dance
after_success:
- codecov