dev-master
9999999-devSimple tool to check latest commit build from GitLab CI
MIT
The Requires
The Development Requires
by Ben Norcombe
continuous integration gitlab gitlab ci build status
Wallogit.com
2017 © Pedro Peláez
Simple tool to check latest commit build from GitLab CI
Simple tool to check latest commit build from GitLab CI, (*2)
The tool requires you have PHP 5.4.* + and Composer., (*3)
The get the latest version of gitlab-ci-build-status, add the following line to your composer.json file:, (*4)
"maenbn/gitlab-ci-build-status": "dev-master"
Then run composer install or composer update to install., (*5)
Setting up the client requires your Gitlab CI URL, Gitlab CI project ID, and Gitlab CI project token:, (*6)
$client = new \Maenbn\GitlabCiBuildStatus\Client('https://gitlab.example.com/api/v3' 'project_id', 'my_private_token');
Then you can grab the status. You can also specify a branch (defaults to master)., (*7)
$status = $client->getStatus('my_current_patch');
Simple tool to check latest commit build from GitLab CI
MIT
continuous integration gitlab gitlab ci build status