forked from revolunet/sublimetext-markdown-preview
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (42 loc) · 1.05 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
sudo: false
language: python
matrix:
include:
- python: 3.6
env: TESTENV=unittest
- python: 3.6
env: TESTENV=documents
install:
- pip install --upgrade setuptools
- pip install flake8
- pip install flake8-docstrings
- pip install flake8-mutable
- pip install flake8-builtins
- pip install pep8-naming
- pip install pytest
- pip install mkdocs
- pip install mkdocs-material
- pip install pymdown-extensions
- pip install pygments
- pip install pyspelling
addons:
apt:
packages:
- aspell
- aspell-en
script:
- if [ $TESTENV = unittest ]; then py.test .; fi
- if [ $TESTENV = unittest ]; then flake8 .; fi
- if [ $TESTENV = documents ]; then mkdocs build --clean --verbose --strict; fi
- if [ $TESTENV = documents ]; then python -m pyspelling; fi
deploy:
- provider: pages
github_token: $GITHUB_TOKEN
name: $GITHUB_USER
email: $GITHUB_EMAIL
skip_cleanup: true
local_dir: site
on:
tags: true
repo: facelessuser/MarkdownPreview
condition: "$TESTENV = documents"