Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Report
Commits
12cef860
Commit
12cef860
authored
Dec 14, 2016
by
Julien Fastré
Browse files
publishing doc to public api
parent
7d19b4d8
Pipeline
#10155
failed with stages
in 2 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
12cef860
...
...
@@ -10,6 +10,12 @@
-
php Tests/Fixtures/App/app/console doctrine:migrations:migrate --env=test --no-interaction
-
php Tests/Fixtures/App/app/console doctrine:fixtures:load --env=test --no-interaction
stages
:
-
test
-
deploy
-
build-doc
-
deploy-doc
test:php-5.6:
stage
:
test
image
:
chill/ci-image:php-5.6
...
...
@@ -31,3 +37,35 @@ deploy-packagist:
script
:
-
STATUSCODE=$(curl -XPOST -H'content-type:application/json' "https://packagist.org/api/update-package?username=$PACKAGIST_USERNAME&apiToken=$PACKAGIST_TOKEN" -d"{\"repository\":{\"url\":\"$CI_PROJECT_URL.git\"}}" --silent --output /dev/stderr --write-out "%{http_code}")
-
if [ $STATUSCODE = "202" ]; then exit 0; else exit $STATUSCODE; fi
# deploy documentation
api-doc-build
:
stage
:
build-doc
environment
:
api-doc
image
:
chill/ci-image:php-7
before_script
:
-
mkdir api-doc
script
:
apigen generate --destination api-doc/$CI_BUILD_REF_NAME/$CI_PROJECT_NAME
artifacts
:
paths
:
-
"
api-doc/"
name
:
api
expire_in
:
'
2h'
only
:
-
master
-
tags
api-doc-deploy
:
stage
:
deploy-doc
image
:
pallet/swiftclient:latest
before_script
:
# test that CONTAINER_API variable is set
-
if [ -z ${CONTAINER_API+x} ]; then echo "Please set CONTAINER_API variable"; exit -1; fi
# go to api-doc to have and url with PROJECT/BUILD
-
cd api-doc
# upload, and keep files during 1 year
script
:
"
swift
upload
--header
\"
X-Delete-After:
31536000
\"
$CONTAINER_API
$CI_BUILD_REF_NAME/$CI_PROJECT_NAME"
only
:
-
master
-
tags
apigen.neon
0 → 100644
View file @
12cef860
# configuration for apigen
source:
- .
exclude:
- vendor/*
- Test*
title: Chill Report Bundle
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment