appveyor.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. build: false
  2. shallow_clone: true
  3. clone_folder: c:\php-keccak
  4. platform: x64
  5. cache:
  6. - c:\php -> appveyor.yml
  7. - vendor -> composer.lock
  8. environment:
  9. matrix:
  10. - PHP_VERSION: '7.3.7'
  11. PHP_DOWNLOAD_URL: 'https://windows.php.net/downloads/releases/archives/php-7.3.7-nts-Win32-VC15-x64.zip'
  12. - PHP_VERSION: '7.4.3'
  13. PHP_DOWNLOAD_URL: 'https://windows.php.net/downloads/releases/archives/php-7.4.3-nts-Win32-vc15-x64.zip'
  14. - PHP_VERSION: '8.0.0'
  15. PHP_DOWNLOAD_URL: 'https://windows.php.net/downloads/releases/php-8.0.0-nts-Win32-vs16-x64.zip'
  16. matrix:
  17. fast_finish: true
  18. init:
  19. - SET PATH=c:\php\%PHP_VERSION%;%PATH%
  20. - set COMPOSER_NO_INTERACTION=1
  21. install:
  22. - IF NOT EXIST c:\php mkdir c:\php
  23. - IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
  24. - cd c:\php\%PHP_VERSION%
  25. - IF NOT EXIST php-installed.txt curl --fail --location --silent --show-error -o php.zip %PHP_DOWNLOAD_URL%
  26. - IF NOT EXIST php-installed.txt 7z x php.zip -y
  27. - IF NOT EXIST php-installed.txt del /Q *.zip
  28. - IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
  29. - IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
  30. - IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
  31. - IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
  32. - IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
  33. - IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
  34. - IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar
  35. - IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat
  36. - IF NOT EXIST php-installed.txt type nul >> php-installed.txt
  37. - cd c:\php-keccak
  38. test_script:
  39. - composer install
  40. - vendor/bin/phpunit.bat --coverage-text