Phing tasks to consume continuousphp API in a Phing build
Install this package through Composer by adding this package in the require section
"require": {
"continuousphp/phing-tasks": "~0.1"
}
<import file="./vendor/continuousphp/phing-tasks/tasks.xml"/>
The goal of this task is to setup your credential in order to start consuming continuousphp API to access private data
Name | Type | Description | Default | Required |
---|---|---|---|---|
token | String | A valid token to consume the API | n/a | Yes |
<continuousphp-config token="my-valid-token" />
This task helps you to get a package url for a repository.
Name | Type | Description | Default | Required |
---|---|---|---|---|
provider | String | the repository provider platform (git-hub, bitbucket...) | n/a | Yes |
repository | String | the repository name | n/a | Yes |
reference | String | the GIT reference of the package | n/a | No |
state | String | the allowed build states, can be "complete", "in-progress", or both | complete | No |
destination | String | the Download destination for the package | n/a | No |
property | String | the property in which the download URL or file path will be defined | n/a | No |
<continuousphp-package
provider="git-hub"
repository="continuousphp/phing-tasks"
reference="refs/heads/master"
property="package.url" />
Download the package by adding the destination
<continuousphp-package
provider="git-hub"
repository="continuousphp/phing-tasks"
reference="refs/heads/master"
state="in-progress,complete"
destination="/tmp"
property="package.path" />