From 2b4d50d469a87214fa66595c7aa63eaa03d9e2f1 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sun, 25 Jun 2017 16:26:54 -0400 Subject: [PATCH] Try using a composer image --- .gitlab-ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 809bc874..a7c2cf7b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,14 @@ -image: ubuntu:17.10 +image: composer:master before_script: - bash ci/docker_install.sh > /dev/null test:app: #when: manual - before_script: - - wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig - - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" - - php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" - - php composer-setup.php - - php -r "unlink('composer-setup.php'); unlink('installer.sig');" - - php composer.phar install script: - - cd api/Tests + - cd api + - composer install + - cd Tests - phpunit - cd ../../ci - bash build_zip.sh