.gitlab-ci.yml 747 B

123456789101112131415161718
  1. stages:
  2. - test
  3. before_script:
  4. - apt-get -qq update
  5. - apt-get -qq install --yes zip unzip
  6. - curl --silent https://composer.github.io/installer.sig > installer.sig
  7. - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  8. - 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;"
  9. - php composer-setup.php
  10. - php -r "unlink('composer-setup.php'); unlink('installer.sig');"
  11. unit_otcore:
  12. stage: test
  13. script:
  14. - php composer.phar --quiet --no-interaction --working-dir=./ot_core install
  15. - ./ot_core/.Build/bin/phpunit -c ./ot_core/Tests/Build/UnitTests.xml