appveyor.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. build: false
  2. platform: x86
  3. clone_folder: c:\projects\utf8
  4. cache:
  5. - c:\php -> appveyor.yml
  6. branches:
  7. only:
  8. - master
  9. init:
  10. - SET PATH=c:\php;%PATH%
  11. - SET COMPOSER_NO_INTERACTION=1
  12. - SET PHP=1
  13. install:
  14. - IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
  15. - cd c:\php
  16. - IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.5.9-nts-Win32-VC11-x86.zip
  17. - IF %PHP%==1 7z x php-5.5.9-nts-Win32-VC11-x86.zip -y >nul
  18. - IF %PHP%==1 del /Q *.zip
  19. - IF %PHP%==1 appveyor DownloadFile https://phar.phpunit.de/phpunit-4.8.15.phar
  20. - IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
  21. - IF %PHP%==1 echo @php %%~dp0phpunit-4.8.15.phar %%* > phpunit.bat
  22. - IF %PHP%==1 copy /Y php.ini-development php.ini
  23. - IF %PHP%==1 echo max_execution_time=1200 >> php.ini
  24. - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
  25. - IF %PHP%==1 echo extension_dir=ext >> php.ini
  26. - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
  27. - IF %PHP%==1 echo extension=php_intl.dll >> php.ini
  28. - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
  29. - appveyor DownloadFile https://getcomposer.org/composer.phar
  30. - cd c:\projects\utf8
  31. - IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
  32. - composer update --prefer-source --no-progress --ansi
  33. test_script:
  34. - phpunit