appveyor.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. version: "{build}"
  2. environment:
  3. global:
  4. HAXELIB_ROOT: C:/projects/haxelib
  5. CYG_ROOT: C:/cygwin64
  6. ADD_REVISION: 1
  7. MYSQL_PATH: C:\Program Files\MySQL\MySQL Server 5.7
  8. MYSQL_USER: root
  9. MYSQL_PASSWORD: Password12!
  10. HXBUILDS_AWS_ACCESS_KEY_ID:
  11. secure: fggQXlr5xGGl0znUi0UkqPWd6LviHnk0TR6YxJmuV3U=
  12. HXBUILDS_AWS_SECRET_ACCESS_KEY:
  13. secure: ewwkKcjnSKl/Vtrz1SXmI6XKk1ENmJDyzm5YaR2wi03foRhTke29TvymB21rDTSl
  14. matrix:
  15. - TEST: "neko,python,cs,java,php7,php,macro"
  16. DEPLOY_NIGHTLIES: 1
  17. - TEST: "cpp"
  18. skip_tags: true
  19. cache:
  20. - opam64.tar.xz -> appveyor.yml
  21. install:
  22. - 'git submodule update --init --recursive'
  23. - '%CYG_ROOT%/bin/bash -lc "echo initialize"'
  24. - choco install curl
  25. # Install ocaml
  26. - curl -fsSL -o cygwin-setup.exe --retry 3 https://cygwin.com/setup-x86_64.exe
  27. - 'cygwin-setup.exe -g -q -R "%CYG_ROOT%" -P make -P git -P mingw64-x86_64-zlib -P rsync -P patch -P diffutils -P curl -P unzip -P m4 -P perl -P mingw64-x86_64-gcc-core -P mingw64-x86_64-pcre'
  28. - if not exist "opam64.tar.xz" (
  29. curl -fsSL -o opam64.tar.xz --retry 3 https://github.com/fdopen/opam-repository-mingw/releases/download/0.0.0.1/opam64.tar.xz
  30. )
  31. - 7z x "opam64.tar.xz" -so | 7z x -aoa -si -ttar
  32. - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && bash opam64/install.sh"'
  33. - '%CYG_ROOT%/bin/bash -lc "opam init mingw \"https://github.com/fdopen/opam-repository-mingw.git\" --comp 4.02.3+mingw64c --switch 4.02.3+mingw64c --auto-setup --yes"'
  34. - '%CYG_ROOT%/bin/bash -lc "opam install camlp4 sedlex ocamlfind xml-light extlib rope ptmap --yes"'
  35. # Install neko
  36. - choco install neko --prerelease --ignore-dependencies -s 'https://ci.appveyor.com/nuget/neko' -y
  37. - choco install chocolatey-core.extension php --ignore-dependencies -y
  38. - choco install nsis.portable
  39. - choco install wget
  40. - echo extension=php_openssl.dll >> C:\tools\php71\php.ini
  41. - RefreshEnv
  42. - neko -version
  43. # setup python
  44. - cmd: mklink C:\Python34-x64\python3.exe C:\Python34-x64\python.exe
  45. - set PATH=%PATH%;C:\Python34-x64
  46. # expose the dll files
  47. - set "PATH=%CYG_ROOT%/usr/x86_64-w64-mingw32/sys-root/mingw/bin;%PATH%"
  48. - choco install awscli
  49. build_script:
  50. - 'cd %APPVEYOR_BUILD_FOLDER%'
  51. - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win libs && make -j -s -f Makefile.win haxe && make -s -f Makefile.win haxelib"'
  52. - 'set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%'
  53. - 'set HAXEPATH=%APPVEYOR_BUILD_FOLDER%'
  54. - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win package_bin"'
  55. - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win package_choco"'
  56. - move out\haxe.*.nupkg .
  57. - dir %APPVEYOR_BUILD_FOLDER%\out
  58. - cd %APPVEYOR_BUILD_FOLDER%/tests/
  59. - mkdir "%HAXELIB_ROOT%"
  60. - haxelib setup "%HAXELIB_ROOT%"
  61. test_script:
  62. - cd %APPVEYOR_BUILD_FOLDER%/tests/
  63. - haxe -version
  64. - haxe RunCi.hxml
  65. - neko RunCi.n
  66. artifacts:
  67. - path: 'out/*.zip'
  68. - path: '*.nupkg'