|
2 | 2 |
|
3 | 3 | [](https://continuousphp.com/git-hub/continuousphp/phing-tasks) |
4 | 4 |
|
5 | | -continuousphp Phing tasks |
| 5 | +[Phing](https://www.phing.info/) tasks to consume [continuousphp](https://continuousphp.com/) API in a Phing build |
| 6 | + |
| 7 | +## Installation |
| 8 | + |
| 9 | +Install this package through [Composer](https://getcomposer.org/) by adding this package in the require section |
| 10 | + |
| 11 | +```json |
| 12 | +"require": { |
| 13 | + "continuousphp/phing-tasks": "~0.1" |
| 14 | +} |
| 15 | +``` |
| 16 | + |
| 17 | +## Import tasks in your build |
| 18 | +```xml |
| 19 | +<import file="./vendor/continuousphp/phing-tasks/tasks.xml"/> |
| 20 | +``` |
| 21 | + |
| 22 | +## Tasks |
| 23 | + |
| 24 | +### 1. continuousphp-config |
| 25 | +The goal of this task is to setup your credential in order to start consuming |
| 26 | +[continuousphp](https://continuousphp.com/) API |
| 27 | + |
| 28 | +#### 1.1. Attributes |
| 29 | +| Name | Type | Description | Default | Required | |
| 30 | +| ----- | ------ | -------------------------------- | ------- | -------- | |
| 31 | +| token | String | A valid token to consume the API | n/a | Yes | |
| 32 | + |
| 33 | +#### 1.2. Example |
| 34 | +```xml |
| 35 | +<continuousphp-config token="my-valid-token" /> |
| 36 | +``` |
| 37 | + |
| 38 | +### 2. continuousphp-package |
| 39 | +This task helps you to get a package url for a repository. |
| 40 | + |
| 41 | +#### 2.1. Attributes |
| 42 | +| Name | Type | Description | Default | Required | |
| 43 | +| ---------- | ------ | -------------------------------------------------------- | ------- | -------- | |
| 44 | +| provider | String | the repository provider platform (git-hub, bitbucket...) | n/a | Yes | |
| 45 | +| repository | String | the repository name | n/a | Yes | |
| 46 | +| reference | String | the GIT reference of the package | n/a | No | |
| 47 | +| property | String | the property in which the download URL will be provided | n/a | No | |
| 48 | + |
| 49 | +#### 2.2 Example |
| 50 | +```xml |
| 51 | +<continuousphp-package |
| 52 | + provider="git-hub" |
| 53 | + repository="continuousphp/phing-tasks" |
| 54 | + reference="/refs/heads/master" |
| 55 | + property="package.url" /> |
| 56 | +``` |
0 commit comments