appveyor.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. environment:
  2. matrix:
  3. - PHP_VERSION: 7.0.1
  4. BUILD_PLATFORM: x86
  5. PHP_VC: 14
  6. PHP_SDK: c:\projects\php-sdk
  7. PHP_DEVPACK: c:\projects\php-devpack
  8. os: Windows Server 2012
  9. clone_folder: c:\projects\php-sdk\v8js-ci\vc14\x86\php-7.0.1\ext\v8js
  10. matrix:
  11. fast_finish: true
  12. install:
  13. - cd %PHP_SDK%
  14. - curl -fSL -o php-sdk-binary-tools-20110915.zip 'http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip'
  15. - 7z.exe x php-sdk-binary-tools-20110915.zip
  16. - call bin\phpsdk_setvars.bat
  17. - call bin\phpsdk_buildtree.bat v8js-ci
  18. - cd v8js-ci\vc14\x86
  19. - md deps
  20. - ps: (New-Object Net.WebClient).DownloadFile('https://jenkins.brokenpipe.de/job/V8Js-PHP7/job/win-v8/lastSuccessfulBuild/artifact/*zip*/archive.zip', 'archive.zip')
  21. - curl -fSL -o archive.zip 'https://jenkins.brokenpipe.de/job/V8Js-PHP7/job/win-v8/lastSuccessfulBuild/artifact/*zip*/archive.zip'
  22. - 7z.exe x archive.zip
  23. - move archive\v8\include deps\
  24. - mkdir deps\include\include
  25. - copy deps\include\v8-platform.h deps\include\include\
  26. - move archive\v8\build\Release\lib deps\
  27. - curl -fSL -o 'php-7.0.1.tar.gz' 'http://us1.php.net/distributions/php-7.0.1.tar.gz'
  28. - 7z.exe x php-7.0.1.tar.gz -y
  29. - 7z.exe x php-7.0.1.tar -y | find /v "Extracting"
  30. - cd php-7.0.1
  31. - mkdir Release_TS
  32. - move ..\archive\v8\build\Release\*.dll Release_TS\
  33. build_script:
  34. - cd
  35. - cd %APPVEYOR_BUILD_FOLDER%\..\..
  36. - '"%VS140COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%'
  37. - set
  38. - echo Building PHP [%PHP_VERSION%]
  39. - '%PHP_SDK%\bin\phpsdk_setvars'
  40. - buildconf
  41. - configure --disable-all --enable-cli --with-v8js
  42. - nmake
  43. after_build:
  44. - cd %APPVEYOR_BUILD_FOLDER%\..\..\Release_TS
  45. - 7z a v8js_vc14_php7_ts.zip icu*.dll v8.dll php_v8js.dll
  46. - ps: Push-AppveyorArtifact v8js_vc14_php7_ts.zip
  47. test_script:
  48. - cd %APPVEYOR_BUILD_FOLDER%\..\..
  49. - set NO_INTERACTION=1
  50. - set TEST_PHP_JUNIT=junit.xml
  51. - set REPORT_EXIT_STATUS=1
  52. - Release_TS\php.exe run-tests.php -p Release_TS\php.exe ext/v8js/tests/ -d extension=php_v8js.dll -d extension_dir=Release_TS\
  53. on_finish:
  54. - cd %APPVEYOR_BUILD_FOLDER%\..\..
  55. - ps: |
  56. # upload results to AppVeyor
  57. $wc = New-Object 'System.Net.WebClient'
  58. $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit.xml))
  59. deploy:
  60. provider: S3
  61. access_key_id: AKIAJBJLBBZPMYOGVKEA
  62. secret_access_key:
  63. secure: N+jqdcvCOzqfrwL7ClIvcd9TkmQe9dghJwZMjLYtv7syVW5c4EU9YrqUbUUGmZ04
  64. bucket: win-phpv8
  65. set_public: true
  66. artifact: v8js_vc14_php7_ts.zip
  67. on:
  68. branch: php7