Skip to content

Commit a5287ac

Browse files
committed
#154 : PHPDocumentor on GH-Pages
1 parent a62a58a commit a5287ac

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ matrix:
1414
- php: 5.6
1515
- php: hhvm
1616

17+
env:
18+
global:
19+
- secure: "Sq+6bVtnPsu0mWX8DWQ+9bGAjxMcGorksUiHc4YIXEJsuDfVmVlH8tTD547IeCjDAx9MxXerZ2Z4HSjxTB70VEnJPvZMHI/EZn4Ny31YLHEthdZbV5Gd1h0TGp8VOzPKGShvGrtGBX6MvMfgpK4zuieVWbSfdKeecm8ZNLMpUd4="
20+
1721
before_script:
1822
## Composer
1923
# - curl -s http://getcomposer.org/installer | php
2024
# - php composer.phar install --prefer-source
2125
- composer self-update
2226
- composer require dompdf/dompdf:0.6.*
23-
- composer install --prefer-source
27+
- composer install --prefer-source --dev
2428
## PHP_CodeSniffer
2529
- pyrus install pear/PHP_CodeSniffer
2630
- phpenv rehash
@@ -35,6 +39,8 @@ before_script:
3539
#- phpenv rehash
3640
## PHPLOC
3741
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
42+
## PHPDocumentor
43+
- mkdir -p build/docs
3844

3945
script:
4046
## PHP_CodeSniffer
@@ -48,3 +54,9 @@ script:
4854
#- php phploc.phar src/
4955
## PHPUnit
5056
- phpunit -c ./ --coverage-text
57+
## PHPDocumentor
58+
- vendor/bin/phpdoc.php -d ./src -t ./build/docs
59+
60+
after_script:
61+
## PHPDocumentor
62+
- bash .travis_shell_after_success.sh

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"ext-zip": "*"
3838
},
3939
"require-dev": {
40-
"phpunit/phpunit": "3.7.*"
40+
"phpunit/phpunit": "3.7.*",
41+
"phpdocumentor/phpdocumentor":"2.*"
4142
},
4243
"suggest": {
4344
"ext-gd2": "Required to add images",

0 commit comments

Comments
 (0)