Browse Source

Try using a composer image

tags/3.1.0
Mike Koch 2 years ago
parent
commit
2b4d50d469
1 changed files with 4 additions and 9 deletions
  1. 4
    9
      .gitlab-ci.yml

+ 4
- 9
.gitlab-ci.yml View File

@@ -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

Loading…
Cancel
Save