appveyor.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. build: false
  2. platform: 'x86'
  3. clone_folder: C:\projects\gaufrette
  4. branches:
  5. except:
  6. - gh-pages
  7. cache:
  8. - '%LOCALAPPDATA%\Composer\files'
  9. - c:\php -> appveyor.yml
  10. environment:
  11. AWS_KEY:
  12. secure: nMVfvhojgVc9VBlrYXeddaYIQHlVAlupWmxNjXMlsB0=
  13. AWS_SECRET:
  14. secure: MiAf2q7mnqSIZSoChd9v3pwUrXHeAEpZP8Zc0E0qjiOBXPvplzJVtrkWRwTNlQl3
  15. AWS_BUCKET: gaufretteci
  16. RACKSPACE_USER:
  17. secure: aEIZdm+IXe9dGLOnSmgu8A==
  18. RACKSPACE_APIKEY:
  19. secure: CqBlB4EVIM2FMaYxBdplTaQzw8JgKElxYvKYpXUXPHpOdwJcnYy0gk2KdjF4fXDM
  20. RACKSPACE_CONTAINER: gaufretteci
  21. AZURE_ACCOUNT:
  22. secure: s6JCZ8ztVGvVYprceONZOg==
  23. AZURE_KEY:
  24. secure: 6+9kd9n/BO65LI8ZCJJXOwo9v5QmMULKWExHgECe+rnflaw+ZiQ8jFfHwxxjOfUF1qulAyxHQmDj7M3Cfvbe/DAASjk52ngEMvHC6wv2/Eo0cBMQiUlS9vPeUlvkUy1L
  25. AZURE_CONTAINER: gaufretteci
  26. MONGO_URI: "mongodb://127.0.0.1:27017"
  27. MONGO_DBNAME: "gridfs_test"
  28. services:
  29. - mongodb
  30. init:
  31. - SET PATH=C:\Program Files\OpenSSL;c:\php;%PATH%
  32. - SET PHP=1
  33. install:
  34. - IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
  35. - cd c:\php
  36. - IF %PHP%==1 cinst -y OpenSSL.Light --version 1.1.1
  37. - IF %PHP%==1 curl -fsSL -o php-7.2.12-Win32-VC15-x86.zip https://windows.php.net/downloads/releases/archives/php-7.2.12-Win32-VC15-x86.zip
  38. - IF %PHP%==1 7z x php-7.2.12-Win32-VC15-x86.zip -y >nul
  39. - IF %PHP%==1 del /Q *.zip
  40. - IF %PHP%==1 curl -fsSL -o cacert.pem https://curl.haxx.se/ca/cacert.pem
  41. - IF %PHP%==1 cd ext
  42. - IF %PHP%==1 curl -fsSL -o php_mongodb-1.5.3-7.2-ts-vc15-x86.zip https://windows.php.net/downloads/pecl/releases/mongodb/1.5.3/php_mongodb-1.5.3-7.2-ts-vc15-x86.zip
  43. - IF %PHP%==1 7z x php_mongodb-1.5.3-7.2-ts-vc15-x86.zip php_mongodb.dll -y >nul
  44. - IF %PHP%==1 del /Q *.zip
  45. - IF %PHP%==1 cd ..
  46. - IF %PHP%==1 copy php.ini-production php.ini /Y
  47. - IF %PHP%==1 echo extension_dir=ext >> php.ini
  48. - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
  49. - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
  50. - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
  51. - IF %PHP%==1 echo extension=php_mongodb.dll >> php.ini
  52. - IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini
  53. - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
  54. - IF %PHP%==1 echo extension=php_curl.dll >> php.ini
  55. - IF %PHP%==1 echo extension=php_ftp.dll >> php.ini
  56. - IF %PHP%==1 echo openssl.cafile=c:\php\cacert.pem >> php.ini
  57. - cd C:\projects\gaufrette
  58. - curl -fsSL -o composer.phar https://getcomposer.org/composer.phar
  59. - php composer.phar update --prefer-dist --no-interaction --no-progress --no-suggest --ansi
  60. test_script:
  61. - cd C:\projects\gaufrette
  62. - vendor\bin\phpspec run -fpretty --verbose
  63. - vendor\bin\phpunit --verbose -c phpunit.xml.dist