Attempt to use alpine php image

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

View File

@ -13,7 +13,7 @@ test:7:
- bash build/docker_install.sh > /dev/null - bash 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 - php composer.phar install --no-dev
image: php:7 image: php:7-alpine
script: script:
- phpunit -c build --coverage-text --colors=never - phpunit -c build --coverage-text --colors=never
@ -22,7 +22,7 @@ test:7.1:
- bash build/docker_install.sh > /dev/null - bash 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 - php composer.phar install --no-dev
image: php:7.1 image: php:7.1-alpine
script: script:
- phpunit -c build --coverage-text --colors=never - phpunit -c build --coverage-text --colors=never

View File

@ -9,14 +9,13 @@ 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 apk upgrade --update && apk add \
apt-get install \ curl \
git \ git \
libxslt1-dev \ libxslt1-dev \
libxslt1.1 \ libxslt1.1 \
zlib1g-dev \ zlib1g-dev \
unzip \ unzip
-yqq
# Install phpunit, the tool that we will use for testing # Install phpunit, the tool that we will use for testing
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar