Commit eaff5740 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction config gitlab-ci

parent 3cd37542
Loading
Loading
Loading
Loading
+14 −5
Changes for .gitlab-ci.yml: 14 added lines, 5 removed lines.
Original line number Diff line number Diff line
#image: unicaen:stretch

stages:
- update-repo-directory
- run-tests
- update-satis

run-tests:
  stage: run-tests
  script:
    - apt -qq install -y wget curl
    - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
    - composer install --no-interaction
    - vendor/bin/phpunit --configuration tests/phpunit.xml tests/UnicaenAppTest/Options

repo-update:
  stage: update-repo-directory
update-satis:
  stage: update-satis
  script:
    - apt -qq update
    - apt -qq -y install openssh-client
    - ssh -o StrictHostKeychecking=no root@lgest1 "cd /var/www/html/packagist/satis && php bin/satis build --verbose unicaen.json /var/www/html/packagist/"