appveyor.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. build: false
  2. shallow_clone: true
  3. platform: 'x86'
  4. branches:
  5. except:
  6. - gh-pages
  7. cache:
  8. - c:\tools\php71 -> appveyor.yml
  9. services:
  10. - mysql
  11. - postgresql93
  12. - mongodb
  13. init:
  14. - SET PATH=C:\Program Files\OpenSSL;c:\tools\php71;%PATH%
  15. - SET COMPOSER_NO_INTERACTION=1
  16. - SET PHP=1
  17. - SET ANSICON=121x90 (121x90)
  18. install:
  19. # databases setup
  20. - SET PATH=C:\Program Files\MySql\MySQL Server 5.7\bin\;%PATH%
  21. - SET PGUSER=postgres
  22. - SET PGPASSWORD=Password12!
  23. - SET PATH=C:\Program Files\PostgreSQL\9.3\bin\;%PATH%
  24. # php setup
  25. - IF EXIST c:\tools\php71 (SET PHP=0)
  26. - ps: Set-Service wuauserv -StartupType Manual
  27. - IF %PHP%==1 cinst -y OpenSSL.Light
  28. - SET PATH=C:\Program Files\OpenSSL;%PATH%
  29. - cinst -y curl
  30. - SET PATH=C:\Program Files\curl;%PATH%
  31. - sc config wuauserv start= auto
  32. - IF %PHP%==1 cinst -y php --version 7.1.14
  33. - IF %PHP%==1 cd c:\tools\php71
  34. - IF %PHP%==1 copy php.ini-production php.ini
  35. - IF %PHP%==1 echo extension_dir=ext >> php.ini
  36. - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
  37. - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
  38. - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
  39. - IF %PHP%==1 echo extension=php_curl.dll >> php.ini
  40. - IF %PHP%==1 echo extension=php_pdo_mysql.dll >> php.ini
  41. - IF %PHP%==1 echo extension=php_pdo_pgsql.dll >> php.ini
  42. - IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini
  43. - IF %PHP%==1 echo extension=php_pgsql.dll >> php.ini
  44. - SET PATH=C:\tools\php71;%PATH%
  45. - cd %APPVEYOR_BUILD_FOLDER%
  46. - appveyor DownloadFile https://getcomposer.org/composer.phar
  47. - php composer.phar install --prefer-dist -n --no-ansi
  48. before_test:
  49. - createdb codeception_test
  50. - mysql -uroot -pPassword12! -e "CREATE DATABASE codeception_test"
  51. test_script:
  52. - codecept run cli --no-colors -n --skip-group coverage
  53. - codecept run unit -g core -g appveyor --no-colors -n