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