Commit Graph

7 Commits

Author SHA1 Message Date
Alex Palaistras 683aaf765c Makefile: Remove extraneous PACKAGE_FORMAT argument 2018-06-04 10:39:10 +01:00
Alex Palaistras d92b760c17 Update PHP versions, allow building static version of PHP in Docker
This allows for building binaries against `go-php` without needing an accompanying version of the
PHP library. To build a static version of `go-php`, simply set `STATIC=true` as a Make flag, e.g.:

    make docker-build STATIC=true

The resulting `go-php` library will be placed in `.build/env/GOPATH/pkg/...` by default, and can be
used directly, but using the Docker image as a build environment will also work.
2018-06-01 14:22:40 +01:00
Alex Palaistras d0ac95b7ca Update PHP versions for Travis, move Dockerfile to 'golang' image
This adds PHP  7.2.1 as a new target, and updates existing PHP versions to their latest numbers. Be
aware that PHP 7.2.x is as-of-yet untested -- and expected to be buggy.
2018-01-07 17:07:36 +00:00
Alex Palaistras 134daabdc8 Test all supported PHP versions for Travis, fix Docker image reference 2017-10-07 11:39:30 +01:00
Alex Palaistras 8383b4bc81 Pull Docker images before building, allow running any command in Docker
Docker images will still need to be pushed manually.
2017-10-06 15:49:22 +01:00
Alex Palaistras cd1c76d08e Unify Dockerfiles for easier testing across PHP versions
All PHP builds in Docker are now made against a single-unified Dockerfile, which accepts the PHP
version to target in the `PHP_VERSION` argument. Source files are currently not verified (other than
being downloaded from a secure location, as we will eventually move to using the official `php`
Docker images as a base, as soon as these catch up to latest versions of Debian.
2017-10-06 14:52:58 +01:00
Alex Palaistras 549d883bbc Add Dockerfiles, Makefile for testing against isolated environment
This commit adds a Dockerfile for PHP 5.6.x and PHP 7.1.x versions, allowing for tests, package
builds etc. to run against an isolated, controlled environment. PHP is currently built as a shared
library, in the future we may build as a static library to allow bundling with Go applications.

Also included is a Makefile, containing targets for common operations, such as testing, building
packages etc. Two undocumented targets related to Docker are included, `docker-image` and
`docker-test`. Moving these as documented targets is a future task.
2017-10-06 12:39:05 +01:00