Skip to content

Commit dce8134

Browse files
committed
ci(travis): filter by v1.x branch
Remove building for phpDocumentor 3 and use Node 16.
1 parent 4e9074c commit dce8134

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

.travis.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
language: php
22

3+
branches:
4+
only:
5+
- v1.x
6+
37
php:
48
- 5.6
59
- 7.0
610
- 7.1
711
- 7.2
812
- 7.3
13+
- 7.4
914

1015
cache:
1116
- npm
@@ -19,16 +24,13 @@ env:
1924
matrix:
2025
fast_finish: false
2126
include:
22-
- php: 7.2
23-
env: PHPDOC=3
2427
- php: 7.2
2528
env: DEPLOY_DOCS=true
2629

2730
allow_failures:
28-
- php: 7.2
29-
env: PHPDOC=3
3031
- php: 5.6
3132
- php: 7.0
33+
- php: 7.4
3234

3335
before_install:
3436
# Update composer
@@ -43,31 +45,15 @@ before_install:
4345
- composer global config prefer-stable true
4446
- export PATH="$(composer config -g home)/vendor/bin:$PATH"
4547

46-
# Use Nove v8
47-
- nvm use v8
48-
49-
# Install/update Yarn
50-
- curl -o- -L https://yarnpkg.com/install.sh | bash
51-
- export PATH=$HOME/.yarn/bin:$PATH
48+
# Use Node 16
49+
- nvm use 16
5250

5351
install:
54-
- | # phpDocumentor 3-dev
55-
if [[ $PHPDOC == '3' ]]; then
56-
composer global require phpdocumentor/phpdocumentor:dev-develop
57-
composer global require symfony/dotenv
58-
fi
59-
6052
- composer install --no-interaction
6153
- npm install
6254

6355
script:
64-
- |
65-
if [[ $PHPDOC == '3' ]]; then
66-
phpdoc -d demo/ -t docs/demo/ --force --template=data/templates/vuepress/
67-
else
68-
composer build:api
69-
fi
70-
56+
- composer build:api
7157
- npm run docs:build
7258

7359
deploy:
@@ -78,6 +64,6 @@ deploy:
7864
local-dir: dist/phpdoc-vuepress
7965
project-name: "nelson6e65/phpdoc-vuepress [${TRAVIS_COMMIT_RANGE}]"
8066
on:
81-
branch: master
67+
branch: v1.x
8268
condition: $DEPLOY_DOCS = true
8369
verbose: true

0 commit comments

Comments
 (0)