Skip to content

Commit e71821d

Browse files
committed
Build devel docs on travis
This ensures there are no errors in the doc syntax. We're currently using dev-master, see ApiGen/ApiGen#1012 Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent 4a0f3b9 commit e71821d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea/
22
vendor/
3+
doc/
34
.composer.json
45
composer.lock
56
coverage.xml

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ php:
1616
env:
1717
matrix:
1818
- MOTRANSLATOR=no
19+
- DOCS=no
1920

2021
matrix:
2122
fast_finish: true
2223
allow_failures:
2324
- php: "nightly"
2425
include:
26+
- php: "7.1"
27+
env: DOCS=yes
2528
- php: "7.0"
2629
env: MOTRANSLATOR=yes
2730
- dist: precise
@@ -41,4 +44,5 @@ cache:
4144
- $HOME/.composer/cache
4245

4346
script:
44-
- ./vendor/bin/phpunit --configuration phpunit.xml
47+
- if [ "$DOCS" = "no" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml ; fi
48+
- if [ "$DOCS" = "yes" ] ; then ./vendor/bin/apigen generate --destination doc src/ ; fi

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
},
2222
"require-dev": {
2323
"phpunit/php-code-coverage": "*",
24-
"phpunit/phpunit": "~4.8 || ~5.7"
24+
"phpunit/phpunit": "~4.8 || ~5.7",
25+
"apigen/apigen": "dev-master#e381f7cef4194571cc9303a5fa8842a352d7eabb",
26+
"roave/better-reflection": "dev-master#c87d856"
2527
},
2628
"conflict": {
2729
"phpmyadmin/motranslator": "<3.0"

0 commit comments

Comments
 (0)