-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 1.04 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
# Use distribution Ubuntu 18.04 Bionic
dist: bionic
# Travis CI does install a virtual environment automatically for python 3.6
language: python
python:
- "3.6"
# command to install dependencies
install:
- sudo apt-get update -y
- sudo apt-get install libenchant1c2a -y
# Requirements for the software
- pip install -r requirements.txt
# Requirements to deploy the documentation
- pip install sphinx_rtd_theme
- pip install sphinxcontrib.spelling
- pip install --upgrade recommonmark
# Addons necessary for documentation.
addons:
apt:
packages:
- python3-sphinx
# command to run tests
before_script: export PYTHONPATH=$PYTHONPATH:$(pwd)
script:
- python3 -m unittest discover -s src
#- make spelling
#- make linkcheck
- cd docs
- sphinx-build -b html ./ ./build/
- touch build/.nojekyll
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/build
keep-history: true
target_branch: gh-pages
github_token: $GITHUB_TOKEN
on:
branch: master