appveyor.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. build: false
  2. platform:
  3. - x64
  4. clone_folder: C:\projects\maker-bundle
  5. cache:
  6. - C:\projects\maker-bundle\vendor -> composer.json
  7. # Cache chocolatey packages
  8. - C:\ProgramData\chocolatey\bin -> .appveyor.yml
  9. - C:\ProgramData\chocolatey\lib -> .appveyor.yml
  10. # Cache php install
  11. - C:\tools\php -> .appveyor.yml
  12. - .phpunit -> phpunit
  13. services:
  14. - mysql
  15. init:
  16. - SET PATH=C:\Program Files\OpenSSL;C:\tools\php;%PATH%
  17. - SET COMPOSER_NO_INTERACTION=1
  18. - SET PHP=0 # This var is connected to PHP install cache
  19. - SET ANSICON=121x90 (121x90)
  20. - SET MAKER_DISABLE_FILE_LINKS=1
  21. environment:
  22. TEST_DATABASE_DSN: mysql://root:Password12!@127.0.0.1:3306/test_maker
  23. matrix:
  24. - dependencies: highest
  25. php_ver_target: 7.2.5
  26. install:
  27. - ps: Set-Service wuauserv -StartupType Manual
  28. - IF EXIST C:\tools\php (SET PHP=1) # Checks for the PHP install being cached
  29. - IF %PHP%==0 cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version %php_ver_target%
  30. - cd C:\tools\php
  31. - IF %PHP%==0 copy php.ini-development php.ini /Y
  32. - IF %PHP%==0 echo memory_limit=-1 >> php.ini
  33. - IF %PHP%==0 echo serialize_precision=14 >> php.ini
  34. - IF %PHP%==0 echo realpath_cache_size=8192k >> php.ini
  35. - IF %PHP%==0 echo max_execution_time=1200 >> php.ini
  36. - IF %PHP%==0 echo date.timezone="UTC" >> php.ini
  37. - IF %PHP%==0 echo extension_dir=ext >> php.ini
  38. - IF %PHP%==0 echo opcache.enable_cli=1 >> php.ini
  39. - IF %PHP%==0 echo extension=php_openssl.dll >> php.ini
  40. - IF %PHP%==0 echo extension=php_mbstring.dll >> php.ini
  41. - IF %PHP%==0 echo extension=php_fileinfo.dll >> php.ini
  42. - IF %PHP%==0 echo extension=php_mysqli.dll >> php.ini
  43. - IF %PHP%==0 echo extension=php_curl.dll >> php.ini
  44. - IF %PHP%==0 echo extension=php_pdo_mysql.dll >> php.ini
  45. - IF %PHP%==0 echo @php %%~dp0composer.phar %%* > composer.bat
  46. - appveyor-retry appveyor DownloadFile https://getcomposer.org/composer-stable.phar
  47. - del composer.phar
  48. - rename composer-stable.phar composer.phar
  49. - cd C:\projects\maker-bundle
  50. - composer global require --no-progress --no-scripts --no-plugins symfony/flex
  51. - IF %dependencies%==highest appveyor-retry composer update --no-progress --no-suggest --ansi
  52. - vendor/bin/simple-phpunit install
  53. test_script:
  54. - cd C:\projects\maker-bundle
  55. - vendor/bin/simple-phpunit