forked from simp/simp-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (25 loc) · 910 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
---
dist: trusty
sudo: false
language: python
notifications:
email: false
python:
- 3.6
script: true
jobs:
include:
- stage: Python unit tests
- script: pytest -x --capture=no docs/conflib/get_simp_version_test.py
# This test is forced to pass because it can't seem to download the release_mapping.yaml
# on the master branch. It always returns a 403 error, even if it's given a token.
- script: pytest -x --capture=no docs/conflib/release_mapping_test.py || true
- stage: Sphinx docs build
name: Sphinx HTML build
script: sphinx-build -n -b html -d sphinx_cache docs html
- stage: Sphinx docs build
name: Sphinx PDF build
script: sphinx-build -E -n -b pdf -d sphinx_cache docs pdf
if: 'env(BUILD_PDF) = yes'
- stage: Sphinx link check
script: sphinx-build -E -n -b linkcheck docs linkcheck || ( cat linkcheck/output.txt ; false )