switching to alpine PHP for speed

This commit is contained in:
Joby Elliott 2018-08-21 19:44:52 -06:00
parent eee9110d93
commit d28ad59c62
2 changed files with 8 additions and 9 deletions

View file

@ -1,9 +1,8 @@
image: php:7.0
image: php:7.1-alpine
before_script:
# Install dependencies
- bash ci/docker_install.sh > /dev/null
test:local:
script:
- composer.phar test-local
- php composer.phar test-local

View file

@ -6,13 +6,13 @@
set -xe
# Install git (the php image doesn't have it) which is required by composer
apt-get update -yqq
apt-get install git -yqq
# Install phpunit, the tool that we will use for testing
curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit
apk update
apk add git
# Install mysql driver
# Here you can install any other extension that you need
docker-php-ext-install pdo_mysql pdo_sqlite
# Install composer
curl -sS https://getcomposer.org/installer | php
php composer.phar install