This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 196
196
</target >
197
197
198
198
<target name =" install-apigen" >
199
- <exec executable =" ${ basedir } /apigen.sh" dir =" ${ basedir } " />
199
+ <exec executable =" ${ basedir } /install- apigen.sh" dir =" ${ basedir } " />
200
200
</target >
201
201
<target name =" apigen"
202
- depends =" prepare"
202
+ depends =" prepare, install-apigen "
203
203
description =" Generate project documentation using phpDocumentor" >
204
204
<exec executable =" php" dir =" ${ basedir } /build/" failonerror =" true" >
205
- <arg value =" ${ basedir } /vendor/bin/ apigen" />
205
+ <arg value =" ${ basedir } /apigen.phar " />
206
206
<arg value =" generate" />
207
207
<arg value =" --source" />
208
208
<arg path =" ${ basedir } /src" />
Original file line number Diff line number Diff line change 32
32
"doctrine/cache" : " ~1.4" ,
33
33
"monolog/monolog" : " ~1.12" ,
34
34
"behat/behat" : " ~3.0" ,
35
- "apigen/apigen" : " ~4.1" ,
36
35
"phpunit/phpcov" : " *"
37
36
},
38
37
"suggest" : {
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ ! -e apigen.phar ]
4
+ then
5
+ wget http://apigen.org/apigen.phar
6
+ fi
Original file line number Diff line number Diff line change 8
8
9
9
# to be called as "after_success: - ./push-docs-to-gh-pages.sh" in .travis.yml
10
10
11
- if [ $( phpenv version-name) = " 5.4 " ] ; then ant apigen; fi
11
+ if [ $( phpenv version-name) = " 5.5 " ] ; then ant apigen; fi
12
12
13
- if [ " $TRAVIS_REPO_SLUG " == " sphereio/sphere-php-sdk" ] && [ $( phpenv version-name) = " 5.4 " ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && ( [ " $TRAVIS_BRANCH " == " master" ] || [ " $TRAVIS_BRANCH " == ` git describe --tags --always HEAD` ] ); then
13
+ if [ " $TRAVIS_REPO_SLUG " == " sphereio/sphere-php-sdk" ] && [ $( phpenv version-name) = " 5.5 " ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && ( [ " $TRAVIS_BRANCH " == " master" ] || [ " $TRAVIS_BRANCH " == ` git describe --tags --always HEAD` ] ); then
14
14
echo -e " Publishing documentation to gh-pages branch ...\n"
15
15
16
16
cp -R build/docs $HOME /phpdoc-current
You can’t perform that action at this time.
0 commit comments