-
Notifications
You must be signed in to change notification settings - Fork 373
/
.travis.yml
38 lines (33 loc) · 1012 Bytes
/
.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
sudo: required
language: python
dist: xenial # Required for Python 3.7
cache: pip
python:
- "3.6"
- "3.7"
install:
- pip install --upgrade pip
- pip install --progress-bar off .[tensorflow-cpu]
- pip install flake8==3.7.7
- pip install pytest
script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. Texar limits lines to a maximum of 80 chars.
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics
# Unit tests
- pytest
jobs:
include:
- stage: docs
python: "3.7"
install:
- pip install --upgrade pip
- pip install --progress-bar off -r requirements.txt
- pip install --progress-bar off -r docs/requirements.txt
script:
- cd docs
# Build documents
- sphinx-build -b html -d _build/doctrees . _build/html
notifications:
email: false