Testing gitlab runner configuration

This commit is contained in:
Deon George 2016-06-02 12:05:52 +10:00
parent e65bf3aa88
commit dd2d6da3f3
2 changed files with 1 additions and 23 deletions

View File

@ -1,22 +0,0 @@
#!/bin/bash
# We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
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
if php -r 'if (preg_replace("/([0-9]+)\.([0-9]+).*/","$1.$2",PHP_VERSION) != 5.5) die(1);' ; then
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-4.8.phar #php5.5
else
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
fi
chmod +x /usr/local/bin/phpunit
# Install mysql driver
# Here you can install any other extension that you need
docker-php-ext-install pdo_mysql

@ -1 +1 @@
Subproject commit 6a33249a95ea484dd60470edc3b38f85ff5e1340
Subproject commit 8f659c50c675c427e60a103a19fd3415d0cbbd07