Skip to content

Commit

Permalink
Also test build docs with Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phally committed May 30, 2020
1 parent 0cff56a commit e77cd3a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ matrix:
- php: 5.6
env: PREFER_LOWEST=1

- language: python
python: 2.7
env: DOCS=1
install:
- pip install -r docs/requirements.txt
addons:
apt:
packages:
- texlive-latex-recommended
- texlive-latex-extra
- texlive-fonts-recommended

before_script:
- if [[ $TRAVIS_PHP_VERSION != 7.1 ]]; then phpenv config-rm xdebug.ini; fi

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

- if [[ $DOCS = 1 ]]; then cd docs && make html; fi

after_success:
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.1 ]]; then bash <(curl -s https://codecov.io/bash); fi

Expand Down

0 comments on commit e77cd3a

Please sign in to comment.