Attempt to use alpine php image

This commit is contained in:
Timothy Warren 2017-02-15 09:21:08 -05:00
parent 79153ae433
commit d1f0ab0c73
2 changed files with 5 additions and 6 deletions

View File

@ -13,7 +13,7 @@ test:7:
- bash build/docker_install.sh > /dev/null
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install --no-dev
image: php:7
image: php:7-alpine
script:
- phpunit -c build --coverage-text --colors=never
@ -22,7 +22,7 @@ test:7.1:
- bash build/docker_install.sh > /dev/null
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install --no-dev
image: php:7.1
image: php:7.1-alpine
script:
- phpunit -c build --coverage-text --colors=never

View File

@ -9,14 +9,13 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
set -xe
# Install git (the php image doesn't have it) which is required by composer
apt-get update -yqq
apt-get install \
apk upgrade --update && apk add \
curl \
git \
libxslt1-dev \
libxslt1.1 \
zlib1g-dev \
unzip \
-yqq
unzip
# Install phpunit, the tool that we will use for testing
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar