#18 fix: fix Makefile tests

This commit is contained in:
Paolo Cuffiani
2017-12-04 14:30:38 +01:00
parent ebe0f8b45b
commit 32abb0730d
2 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ SHELL := /bin/bash
PARENT_IMAGE := chialab/php
IMAGE := chialab/php-dev
VERSION ?= latest
PHP_VERSION = $(firstword $(subst -, ,$(VERSION)))
# Extensions.
EXTENSIONS := \
@@ -23,11 +24,11 @@ EXTENSIONS := \
soap \
Xdebug \
zip
ifneq ($(VERSION),$(filter 7.0 7.1 latest, $(VERSION)))
ifeq (,$(findstring $(PHP_VERSION), 7.0 7.1 7.2 latest))
# Add more extensions to 5.x series images.
EXTENSIONS += mysql
endif
ifeq ($(VERSION),$(filter 5.5 5.6 7.0 7.1 latest, $(VERSION)))
ifneq (,$(findstring $(PHP_VERSION), 5.5 5.6 7.0 7.1 7.2 latest))
# Add OPCache check to PHP version with Zend OPCache.
EXTENSIONS += OPcache
endif