php-censor/docs/en/status.md

51 lines
1.5 KiB
Markdown
Raw Normal View History

2016-07-19 11:12:28 +02:00
Project Status Images and Status Page
2017-01-04 13:22:20 +01:00
=====================================
2016-07-19 11:12:28 +02:00
Status Image
2017-01-04 13:22:20 +01:00
------------
2016-07-19 11:12:28 +02:00
2017-07-18 15:54:24 +02:00
Most Continuous Integration systems provide a simple image URL that you can use to display your project status on other
web sites (like Github) - PHP Censor is no different.
2016-07-17 16:20:35 +02:00
2016-07-19 13:05:02 +02:00
You can find the status image at the following location: `http://{PHP_CENSOR_URL}/build-status/image/{PROJECT ID}`
2016-07-17 16:20:35 +02:00
2017-07-18 15:54:24 +02:00
So for example, our instance of PHP Censor is at `php-censor.local`, and our PHP Censor project ID is `2`, so the image
URL is: `http://php-censor.local/build-status/image/2`.
You can use additional parameters:
* style: plastic | flat (default) | flat-squared | social
* label: build (default)
* logo
* logoWidth
* link
* maxAge
[See more on shields.io site](http://shields.io)
2016-07-17 16:20:35 +02:00
Example:
2016-08-25 17:58:35 +02:00
![](http://php-censor.local/build-status/image/2?style=flat-squared&maxAge=3600)
2016-07-17 16:20:35 +02:00
2016-07-19 11:12:28 +02:00
Status Page
2017-01-04 13:22:20 +01:00
-----------
2016-07-19 11:12:28 +02:00
2016-07-19 13:05:02 +02:00
PHP Censor also provides a public project status page, that is accessible for everyone.
2016-07-17 16:20:35 +02:00
2016-07-19 13:05:02 +02:00
You can find the status page at the following location: `http://{PHP_CENSOR_URL}/build-status/view/{PROJECT ID}`
2016-07-17 16:20:35 +02:00
Example:
2016-07-19 13:05:02 +02:00
http://php-censor.local/build-status/view/2
2016-07-17 16:20:35 +02:00
2016-07-19 11:12:28 +02:00
### Where do I find my project ID?
2017-07-18 15:54:24 +02:00
Go to your instance of PHP Censor, and open the project you are interested in. The project ID is the number in the last
part of the URL in your browser.
2016-07-17 16:20:35 +02:00
Example:
2016-07-19 13:05:02 +02:00
http://php-censor.local/project/view/2 ~> PROJECT ID: `2`
2016-07-17 16:20:35 +02:00
2016-07-19 11:12:28 +02:00
### Enable/disable status image and page
2016-07-17 16:20:35 +02:00
You can enable or disable access to the public status image and page in your project's settings.