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 +