Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (47 sloc) 2.05 KB
Feature: continuousphp build
As a Developer
I need to be able to access a build from continuousphp API
Scenario: Get the build list of a specific project
Given I've instatiated the sdk with the following
| token | b52f9c7faf680988f88391b35e5e488883442036 |
When I call the "getBuilds" operation with
| provider | git-hub |
| repository | continuousphp/sdk |
Then The response should be a "build" collection
Scenario: Get a specific build
Given I've instatiated the sdk with the following
| token | b52f9c7faf680988f88391b35e5e488883442036 |
When I call the "getBuild" operation with
| provider | git-hub |
| repository | continuousphp/sdk |
| buildId | a6b9301c-6aed-4921-9f59-a9fac2602148 |
Then The response should be a "build" resource
Scenario: Create a new build
Given I've instatiated the sdk with the following
| token | b52f9c7faf680988f88391b35e5e488883442036 |
When I call the "startBuild" operation with
| provider | git-hub |
| repository | fdewinnetest/sdk |
| ref | refs/heads/master |
Then The response should be a "build" resource
Scenario: Get a download url for a specific build
Given I've instatiated the sdk with the following
| token | b52f9c7faf680988f88391b35e5e488883442036 |
When I call the "getPackage" operation with
| provider | git-hub |
| repository | continuousphp/sdk |
| buildId | a6b9301c-6aed-4921-9f59-a9fac2602148 |
| packageType | deploy |
Then The response should contain a "url"
@debugguzzle6
Scenario: Download a specific build package
Given I've instatiated the sdk with the following
| token | b52f9c7faf680988f88391b35e5e488883442036 |
When I call the "downloadPackage" operation with
| provider | git-hub |
| repository | continuousphp/sdk |
| buildId | a6b9301c-6aed-4921-9f59-a9fac2602148 |
| packageType | deploy |
| destination | /tmp/ |
Then The response should contain a "path"
And The "path" file should exists
You can’t perform that action at this time.