forked from singingwolfboy/flask-dance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (58 loc) · 1.55 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
- name: "Documentation"
python: 3.6
addons:
apt:
packages:
- python3-enchant
- aspell-en
- hunspell-en-us
- myspell-en-us
install:
- travis_retry pip install -r requirements.txt
- travis_retry pip install -r docs/requirements.txt
- pip install -e .
before_script: skip
script:
- cd docs
- sphinx-build -W -b linkcheck -d _build/doctrees . _build/linkcheck
- sphinx-build -W -b spelling -d _build/doctrees . _build/spelling
- sphinx-build -W -b html -d _build/doctrees . _build/html
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 tests/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:
- coverage run -m pytest
after_success:
- codecov