Try using the big image

This commit is contained in:
Timothy Warren 2017-03-01 11:02:46 -05:00
parent 98ff5f3818
commit 81e445b34d
2 changed files with 16 additions and 17 deletions

View File

@ -1,10 +1,3 @@
# Composer stores all downloaded packages in the vendor/ directory.
# Do not use the following if the vendor/ directory is commited to
# your git repository.
cache:
paths:
- vendor/
services:
- memcached:latest
- redis:latest
@ -12,21 +5,23 @@ services:
test:7:
before_script:
- sh build/docker_install.sh > /dev/null
- apk add --no-cache php7-apcu php7-memcached php7-phpdbg
- echo '\nextension=apcu.so\nextension=memcached.so' >> /etc/php7/php.ini
#- apk add --no-cache php7-apcu php7-memcached php7-phpdbg
#- echo '\nextension=apcu.so\nextension=memcached.so' >> /etc/php7/php.ini
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install --ignore-platform-reqs
image: php:7-alpine
#image: php:7-alpine
image: php:7
script:
- phpdbg -qrr -- ./vendor/bin/phpunit -c build
test:7.1:
before_script:
- sh build/docker_install.sh > /dev/null
- apk add --no-cache php7.1-apcu php7.1-memcached php7.1-phpdbg
- echo '\nextension=apcu.so\nextension=memcached.so' >> /etc/php7.1/php.ini
#- apk add --no-cache php7.1-apcu php7.1-memcached php7.1-phpdbg
#- echo '\nextension=apcu.so\nextension=memcached.so' >> /etc/php7.1/php.ini
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install --ignore-platform-reqs
image: php:7.1-alpine
#image: php:7.1-alpine
image: php:7.1
script:
- phpdbg -qrr -- ./vendor/bin/phpunit -c build

View File

@ -6,7 +6,11 @@
set -xe
# Install git (the php image doesn't have it) which is required by composer
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
apk upgrade --update --no-cache \
curl \
git
#echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
#apk upgrade --update --no-cache \
# curl \
# git
pecl install apcu
pecl install memcached
docker-php-ext-enable apcu memcached