File tree Expand file tree Collapse file tree 1 file changed +22
-7
lines changed Expand file tree Collapse file tree 1 file changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ language: php
22
33php :
44 - 7.1
5-
6- node_js : ' 8'
5+ - 7.2
76
87cache :
98- yarn
@@ -12,13 +11,18 @@ cache:
1211env :
1312 matrix :
1413 - BUILD_DOCS=false
14+ - PHPDOC=2
1515
1616matrix :
1717 fast_finish : false
1818 include :
1919 - php : 7.2
2020 env : BUILD_DOCS=true
2121
22+ allow_failures :
23+ - php : 7.2
24+ env : PHPDOC=3
25+
2226before_install :
2327 # Update composer
2428 - composer self-update
@@ -32,18 +36,29 @@ before_install:
3236 - composer global config prefer-stable true
3337 - export PATH="$(composer config -g home)/vendor/bin:$PATH"
3438
39+ # Use Nove v8
40+ - nvm use v8
41+
3542 # Install/update Yarn
3643 - curl -o- -L https://yarnpkg.com/install.sh | bash
3744 - export PATH=$HOME/.yarn/bin:$PATH
3845
3946install :
40- - composer global require phpdocumentor/phpdocumentor:dev-develop # phpDocumentor 3-dev
41- - composer global require symfony/dotenv
47+ - | # phpDocumentor 3-dev
48+ if [[ $PHPDOC == '3' ]]; then
49+ composer global require phpdocumentor/phpdocumentor:dev-develop
50+ composer global require symfony/dotenv
51+ fi
52+
4253 - composer install --no-interaction
4354 - yarn
4455
4556script :
46- - composer build:api
47- - yarn docs:build
48- - phpdoc -d demo/ -t docs/api/ --force --template=data/templates/vuepress/
57+ - |
58+ if [[ $PHPDOC == '3' ]]; then
59+ phpdoc -d demo/ -t docs/api/ --force --template=data/templates/vuepress/
60+ else
61+ composer build:api
62+ fi
63+
4964 - yarn docs:build
You can’t perform that action at this time.
0 commit comments