From 55192a07eb3850a3bce677ddab094ac762e91408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 4 Sep 2016 21:16:09 +0200 Subject: [PATCH] adding job to build api doc --- .gitlab-ci.yml | 17 +++++++++++++++++ apigen.neon | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 apigen.neon diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f67ba67e..3afe12da6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/apigen.neon b/apigen.neon new file mode 100644 index 000000000..86a6d9dbc --- /dev/null +++ b/apigen.neon @@ -0,0 +1,12 @@ +# configuration for apigen + + +source: + - . + +exclude: + - vendor/* + - Test* + +title: Chill MainBundle +