-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
50 lines (50 loc) · 1.27 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
dist: trusty
sudo: false
branches:
only:
- development
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
cache:
pip: true
env:
- MD_VERSION=2.5 MD_NEXT=2.6
- MD_VERSION=2.6 MD_NEXT=2.7
- MD_VERSION=3.0 MD_NEXT=3.1
matrix:
exclude:
- python: 3.3
env: MD_VERSION=3.0 MD_NEXT=3.1
include:
- python: 3.7
env: MD_VERSION=2.6 MD_NEXT=2.7
sudo: required
dist: xenial
- python: 3.7
env: MD_VERSION=3.0 MD_NEXT=3.1
sudo: required
dist: xenial
install:
- if [[ `python -V | grep -c -e 3.7` -eq 1 && "$MD_VERSION" == '3.0' ]]; then pip install -r requirements/lint_requirements.txt ; fi
- if [[ `python -V | grep -c -e 3.6` -eq 1 && "$MD_VERSION" == '3.0' ]]; then pip install -r requirements/doc_requirements.txt ; fi
- pip install -r requirements/test_requirements.txt
- pip install codecov pytest-travis-fold
- pip install -q "Markdown>=$MD_VERSION,<$MD_NEXT"
- python setup.py develop
before_script:
- pip freeze
script:
- if [[ `python -V | grep -c -e 3.7` -eq 1 && "$MD_VERSION" == '3.0' ]]; then flake8 . ; fi
- cd docs
- if [[ `python -V | grep -c -e 3.6` -eq 1 && "$MD_VERSION" == '3.0' ]]; then sphinx-build -W -b html -d _build/doctrees . _build/html ; fi
- cd ..
- pytest -v --cov --cov-report term-missing
after_success:
- codecov