From d28ad59c62629094d5ece47dc6e98900f37a7e9c Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Tue, 21 Aug 2018 19:44:52 -0600 Subject: [PATCH] switching to alpine PHP for speed --- .gitlab-ci.yml | 5 ++--- ci/docker_install.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b48937b..50c4a7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/ci/docker_install.sh b/ci/docker_install.sh index c6bc2d7..bc8d265 100644 --- a/ci/docker_install.sh +++ b/ci/docker_install.sh @@ -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