From 46f57fe3781cffdbe523facc4915d73eebd9a52a Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 29 May 2016 21:20:42 +1000 Subject: [PATCH] Added gitlab runner configuration --- .gitlab-ci.yml | 3 +++ ci/docker_install.sh | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d5257260..0fb4fcb9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,8 +9,11 @@ variables: before_script: # Install dependencies + - echo " Port 2022" >> /etc/ssh/ssh_config - bash ci/docker_install.sh > /dev/null - echo "Load sample DB" + - git submodule init + - git submodule update # We test PHP5.6 test:5.5: diff --git a/ci/docker_install.sh b/ci/docker_install.sh index b165a991..8b46571a 100644 --- a/ci/docker_install.sh +++ b/ci/docker_install.sh @@ -10,7 +10,11 @@ apt-get update -yqq apt-get install git -yqq # Install phpunit, the tool that we will use for testing -curl -o /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar +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