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: services:
- memcached:latest - memcached:latest
- redis:latest - redis:latest
@ -12,21 +5,23 @@ services:
test:7: test:7:
before_script: before_script:
- sh build/docker_install.sh > /dev/null - sh build/docker_install.sh > /dev/null
- apk add --no-cache php7-apcu php7-memcached php7-phpdbg #- apk add --no-cache php7-apcu php7-memcached php7-phpdbg
- echo '\nextension=apcu.so\nextension=memcached.so' >> /etc/php7/php.ini #- echo '\nextension=apcu.so\nextension=memcached.so' >> /etc/php7/php.ini
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install --ignore-platform-reqs - php composer.phar install --ignore-platform-reqs
image: php:7-alpine #image: php:7-alpine
image: php:7
script: script:
- phpdbg -qrr -- ./vendor/bin/phpunit -c build - phpdbg -qrr -- ./vendor/bin/phpunit -c build
test:7.1: test:7.1:
before_script: before_script:
- sh build/docker_install.sh > /dev/null - sh build/docker_install.sh > /dev/null
- apk add --no-cache php7.1-apcu php7.1-memcached php7.1-phpdbg #- 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 #- echo '\nextension=apcu.so\nextension=memcached.so' >> /etc/php7.1/php.ini
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install --ignore-platform-reqs - php composer.phar install --ignore-platform-reqs
image: php:7.1-alpine #image: php:7.1-alpine
image: php:7.1
script: script:
- phpdbg -qrr -- ./vendor/bin/phpunit -c build - phpdbg -qrr -- ./vendor/bin/phpunit -c build

View File

@ -6,7 +6,11 @@
set -xe set -xe
# Install git (the php image doesn't have it) which is required by composer # 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 #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 \ #apk upgrade --update --no-cache \
curl \ # curl \
git # git
pecl install apcu
pecl install memcached
docker-php-ext-enable apcu memcached