adding job to build api doc

This commit is contained in:
Julien Fastré 2016-09-04 21:16:09 +02:00
parent 6855923b37
commit 55192a07eb
2 changed files with 29 additions and 0 deletions

View File

@ -12,9 +12,26 @@ before_script:
test:php-5.6:
stage: test
environment: testing
image: chill/ci-image:php-5.6
script: phpunit
test:php-7:
stage: test
environment: testing
image: chill/ci-image:php-7
script: phpunit
# deploy documentation
api-doc-build:
stage: build
environment: api-doc
image: chill/ci-image:php7
script: apigen generate --destination /tmp/api/$CI_PROJECT_NAME/$CI_BUILD_REF_NAME
artifacts:
paths:
- /tmp/api
name: api
expire_in: '2h'
only:
- master
- tags

12
apigen.neon Normal file
View File

@ -0,0 +1,12 @@
# configuration for apigen
source:
- .
exclude:
- vendor/*
- Test*
title: Chill MainBundle