switching to alpine PHP for speed
This commit is contained in:
parent
eee9110d93
commit
d28ad59c62
2 changed files with 8 additions and 9 deletions
|
@ -1,9 +1,8 @@
|
||||||
image: php:7.0
|
image: php:7.1-alpine
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# Install dependencies
|
|
||||||
- bash ci/docker_install.sh > /dev/null
|
- bash ci/docker_install.sh > /dev/null
|
||||||
|
|
||||||
test:local:
|
test:local:
|
||||||
script:
|
script:
|
||||||
- composer.phar test-local
|
- php composer.phar test-local
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
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 update
|
||||||
apt-get install git -yqq
|
apk add git
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Install mysql driver
|
# Install mysql driver
|
||||||
# Here you can install any other extension that you need
|
# Here you can install any other extension that you need
|
||||||
docker-php-ext-install pdo_mysql pdo_sqlite
|
docker-php-ext-install pdo_mysql pdo_sqlite
|
||||||
|
|
||||||
|
# Install composer
|
||||||
|
curl -sS https://getcomposer.org/installer | php
|
||||||
|
php composer.phar install
|
||||||
|
|
Loading…
Reference in a new issue