Skip to content

Commit 6d284bc

Browse files
committed
Adding phpdocumentor cache
1 parent f50d288 commit 6d284bc

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.drone.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,19 @@ steps:
7878
7979
- name: generate_documentation
8080
image: phpdoc/phpdoc
81+
volumes:
82+
- name: phpdocumentor-cache
83+
path: /tmp/phpdocumentor-cache
8184
commands:
8285
- |
8386
if [ "$JTYPE" = "framework" ]; then
84-
phpdoc -d "./repos/*/src" -t "./build/framework-$JVERSION/" --template "./" --title "Joomla! Framework $JVERSION.x API" -i "./repos/string/src/phputf8" --setting=graphs.enabled=true
87+
phpdoc -d "./repos/*/src" -t "./build/framework-$JVERSION/" --cache-path "/tmp/phpdocumentor-cache" --template "./" --title "Joomla! Framework $JVERSION.x API" -i "./repos/string/src/phputf8" --setting=graphs.enabled=true
8588
fi
8689
- |
8790
if [ "$JTYPE" = "cms" ]; then
8891
export MINORVERSION=${JVERSION%.*}
8992
export MAJORVERSION=${MINORVERSION%.*}
90-
phpdoc -d "./repos/joomla-cms/libraries/src" -t "./build/cms-$MAJORVERSION/" --template "./" --title "Joomla! CMS $MINORVERSION.x API" --setting=graphs.enabled=true
93+
phpdoc -d "./repos/joomla-cms/libraries/src" -t "./build/cms-$MAJORVERSION/" --cache-path "/tmp/phpdocumentor-cache" --template "./" --title "Joomla! CMS $MINORVERSION.x API" --setting=graphs.enabled=true
9194
fi
9295
9396
- name: deploy_documentation
@@ -115,6 +118,12 @@ steps:
115118
fi
116119
- /bin/notify
117120

121+
122+
volumes:
123+
- name: phpdocumentor-cache
124+
host:
125+
path: /tmp/phpdocumentor-cache
126+
118127
trigger:
119128
branch:
120129
- master
@@ -123,6 +132,6 @@ trigger:
123132

124133
---
125134
kind: signature
126-
hmac: 11addd7a7a8cb33fba025c193305a3a72e6742f222b7198fc4387f7d22d9aaef
135+
hmac: 0e675193cb0413d26a22facdc908336460fce3c164cb27593e34a35bdfa48f04
127136

128137
...

0 commit comments

Comments
 (0)