Download the PHP package techpivot/phalcon-ci-installer without Composer
On this page you can find all versions of the php package techpivot/phalcon-ci-installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download techpivot/phalcon-ci-installer
More information about techpivot/phalcon-ci-installer
Files in techpivot/phalcon-ci-installer
Package phalcon-ci-installer
Short Description Composer integration for PHP applications to install the Phalcon framework as an extension in the PHP runtime for various hosted CI services including TravisCI, CircleCI, Scrutinizer, Shippable and Codeship.
License MIT
Informations about the package phalcon-ci-installer
Phalcon CI Installer
Composer integration for PHP applications to install the Phalcon framework as an extension in the PHP runtime for various hosted CI services including CircleCI, Travis CI, Scrutinizer, Codeship, and Shippable.
Features
- Phalcon extension loaded in PHP runtime
- Native cache support to prevent rebuilding Phalcon from source
- Auto-detection of latest tagged Phalcon version
- Install specific Phalcon versions, tags and releases (Since 1.0.2)
- Supports PHP7 and Phalcon 3.0.x (Since 1.0.4)
Version Compatibility
The following table outlines general compability of Phalcon inside various CI environments.
PHP CI Version | Phalcon Version(s) | CI Environment |
---|---|---|
5.3 | ✖ (Not supported) | - |
5.4 | ✖ (Not supported) | - |
5.5 | ✔ master , 2.0.x , 3.0.x |
✔ CircleCI, Travis CI, Scrutinizer, Codeship, Shippable |
5.6 | ✔ master , 2.0.x , 3.0.x |
✔ CircleCI, Travis CI, Scrutinizer, Codeship, Shippable |
7.0 | ✔ 3.0.x |
✔ CircleCI, Travis CI, Scrutinizer, Codeship, Shippable |
Installation
-
Add the
techpivot/phalcon-ci-installer
repository into the require-dev section of yourcomposer.json
as follows: - Update your CI script to execute the vendor/bin/install-phalcon.sh installer in the relevant section. See the examples below for various CI providers.
Options
The installer takes one optional argument that can be used to specify a specific branch or tag.
Examples:
Note: The Phalcon CI installer is designed to cache the resulting binaries that correspond to the Phalcon/PHP version. Specifing a release or tagged version will result in the best performance as subsequent builds (depending on CI container/settings) will be cached. Building from a branch (including the default master option) will result in a Phalcon rebuild every time the installer detects a new version that is not yet cached.
CI Environments
CircleCI
circle.yml
Note: In order to cache data for faster builds, ensure the
cache_directories
directives are specified as outlined above.
Note: Ensure that the
vendor/bin/circleci-install-phalcon.sh
is executed in the post phase, which will allow for the inclusion of thetechpivot/phalcon-ci-installer
repository during the composer installation at inference or override phase.
Reference: CircleCI PHP Versions – Ubuntu 14.04 • Ubuntu 12.04
Travis CI
.travis.yml
Note: Multiple PHP versions can be specified and each one will be cached independently; however, the phalcon target ref (branch or tag) will be applied for all builds
Reference: TravisCI PHP Versions
Scrutinizer
.scrutinizer.yml
Note: No need to include the
vendor/
cache directory as this is cached automatically.
Reference: ScrutinizerCI PHP Versions
Codeship
Sample Setup Commands
Reference: Codeship CI PHP Versions
Shippable
shippable.yml
Reference: Shippable PHP Versions