Skip to content

guillermoandrae/bref-hello-world

Repository files navigation

Bref and Travis CI Integration Example

Travis GitHub @guillermoandrae on Twitter

Bref provides the tools and documentation to easily deploy and run serverless PHP applications.

So... what's this?

If you haven't done so already, start at the Bref docs and follow the first steps. This repo picks up where the deployment automation section of the documentation leaves off. If you want a detailed explanation of the choices made here, check out my Medium post.

travis.yml

The Travis configuration file included in this repo accounts for the complexities of Bref deployments -- specifically, the requirement for the build image to have the correct versions of both Python and PHP installed. To accomplish this, I've used the Ubuntu Xenial generic build environment, and used phpenv -- which is included on all Travis CI images that include PHP -- to set the version needed to support Bref (^7.2.0).

composer.json

I've used some Composer scripts to make the calls in the .travis.yml file a little cleaner. I highly recommend the use of Composer scripts.

Questions

Feel free to use PRs for questions, or get at me on Twitter.

Releases

No releases published

Packages

No packages published

Languages