Skip to content

Repository files navigation

phing-tasks

Build Status

Phing tasks to consume continuousphp API in a Phing build

Installation

Install this package through Composer by adding this package in the require section

"require": {
"continuousphp/phing-tasks": "~0.1"
}

Import tasks in your build

<importfile="./vendor/continuousphp/phing-tasks/tasks.xml"/>

Tasks

  1. continuousphp-config
  2. continuousphp-package

1. continuousphp-config

The goal of this task is to setup your credential in order to start consuming continuousphp API to access private data

1.1. Attributes

NameTypeDescriptionDefaultRequired
tokenStringA valid token to consume the APIn/aYes

1.2. Example

<continuousphp-configtoken="my-valid-token" />

2. continuousphp-package

This task helps you to get a package url for a repository.

2.1. Attributes

NameTypeDescriptionDefaultRequired
providerStringthe repository provider platform (git-hub, bitbucket...)n/aYes
repositoryStringthe repository namen/aYes
referenceStringthe GIT reference of the packagen/aNo
stateStringthe allowed build states, can be "complete", "in-progress", or bothcompleteNo
destinationStringthe Download destination for the packagen/aNo
propertyStringthe property in which the download URL or file path will be definedn/aNo

2.2 Example

<continuousphp-packageprovider="git-hub"repository="continuousphp/phing-tasks"reference="refs/heads/master"property="package.url" />

Download the package by adding the destination

<continuousphp-packageprovider="git-hub"repository="continuousphp/phing-tasks"reference="refs/heads/master"state="in-progress,complete"destination="/tmp"property="package.path" />

About

Phing tasks to consume continuousphp API in a Phing build

Resources

Stars

8 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages