Skip to content

Commit e77cd3a

Browse files
committed
Also test build docs with Travis CI.
1 parent 0cff56a commit e77cd3a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ matrix:
3131
- php: 5.6
3232
env: PREFER_LOWEST=1
3333

34+
- language: python
35+
python: 2.7
36+
env: DOCS=1
37+
install:
38+
- pip install -r docs/requirements.txt
39+
addons:
40+
apt:
41+
packages:
42+
- texlive-latex-recommended
43+
- texlive-latex-extra
44+
- texlive-fonts-recommended
45+
3446
before_script:
3547
- if [[ $TRAVIS_PHP_VERSION != 7.1 ]]; then phpenv config-rm xdebug.ini; fi
3648

@@ -50,6 +62,8 @@ script:
5062
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
5163
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -c phpstan.neon -l 4 src; fi
5264

65+
- if [[ $DOCS = 1 ]]; then cd docs && make html; fi
66+
5367
after_success:
5468
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.1 ]]; then bash <(curl -s https://codecov.io/bash); fi
5569

0 commit comments

Comments
 (0)