Another go with alpine image
This commit is contained in:
parent
e4b42ce149
commit
e30f461642
@ -11,18 +11,20 @@ services:
|
|||||||
|
|
||||||
test:7:
|
test:7:
|
||||||
before_script:
|
before_script:
|
||||||
- bash build/docker_install.sh > /dev/null
|
- sh build/docker_install.sh > /dev/null
|
||||||
- curl -sS https://getcomposer.org/installer | php
|
- curl -sS https://getcomposer.org/installer | php
|
||||||
- php composer.phar install --no-dev
|
- apk add --no-cache php7-apcu php7-memcached php7-phpdbg
|
||||||
image: php:7
|
- php composer.phar install --ignore-platform-reqs
|
||||||
|
image: php:7-alpine
|
||||||
script:
|
script:
|
||||||
- phpunit -c build
|
- phpdbg -qrr -- ./vendor/bin/phpunit -c build
|
||||||
|
|
||||||
test:7.1:
|
test:7.1:
|
||||||
before_script:
|
before_script:
|
||||||
- bash build/docker_install.sh > /dev/null
|
- sh build/docker_install.sh > /dev/null
|
||||||
- curl -sS https://getcomposer.org/installer | php
|
- curl -sS https://getcomposer.org/installer | php
|
||||||
- php composer.phar install --no-dev
|
- apk add --no-cache php7.1-apcu php7.1-memcached php7.1-phpdbg
|
||||||
image: php:7.1
|
- php composer.phar install --ignore-platform-reqs
|
||||||
|
image: php:7.1-alpine
|
||||||
script:
|
script:
|
||||||
- phpunit -c build
|
- phpdbg -qrr -- ./vendor/bin/phpunit -c build
|
||||||
|
@ -3,36 +3,13 @@
|
|||||||
# We need to install dependencies only for Docker
|
# We need to install dependencies only for Docker
|
||||||
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
|
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
|
||||||
|
|
||||||
# Where am I?
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
|
|
||||||
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
|
||||||
apt-get update -yqq
|
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
|
||||||
apt-get install \
|
apk upgrade --update && apk add --no-cache \
|
||||||
git \
|
g++ \
|
||||||
unzip \
|
make \
|
||||||
libfreetype6 \
|
automake \
|
||||||
libjpeg62-turbo \
|
curl \
|
||||||
libmcrypt4 \
|
git
|
||||||
libpng12-0 \
|
|
||||||
libfreetype6-dev \
|
|
||||||
libjpeg-dev \
|
|
||||||
libmcrypt-dev \
|
|
||||||
libpng12-dev \
|
|
||||||
libxslt1-dev \
|
|
||||||
libxslt1.1 \
|
|
||||||
zlib1g-dev \
|
|
||||||
-yqq
|
|
||||||
|
|
||||||
# Install phpunit, the tool that we will use for testing
|
|
||||||
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
|
|
||||||
chmod +x /usr/local/bin/phpunit
|
|
||||||
|
|
||||||
# Install extensions
|
|
||||||
docker-php-ext-install apcu
|
|
||||||
docker-php-ext-install memcache
|
|
||||||
docker-php-ext-install memcached
|
|
||||||
docker-php-ext-install xsl
|
|
||||||
docker-php-ext-install zip
|
|
Loading…
Reference in New Issue
Block a user