appveyor.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. version: '{build}'
  2. cache:
  3. - x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
  4. - sqlite-dll-win64-x64-3160200.zip
  5. # - i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
  6. matrix:
  7. fast_finish: true
  8. environment:
  9. matrix:
  10. - MINGW_DIR: mingw64
  11. MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z/download
  12. MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
  13. SQLITE_URL: http://www.sqlite.org/2017/sqlite-dll-win64-x64-3160200.zip
  14. SQLITE_ARCHIVE: sqlite-dll-win64-x64-3160200.zip
  15. platform: x64
  16. # - MINGW_DIR: mingw32
  17. # MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/dwarf/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z/download
  18. # MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
  19. # SQLITE_URL: http://www.sqlite.org/2017/sqlite-dll-win32-x86-3160200.zip
  20. # SQLITE_ARCHIVE: sqlite-dll-win32-x86-3160200.zip
  21. # platform: x86
  22. install:
  23. - ps: Install-Product node 8 # node 8 or later is required to test js async stuff
  24. - MKDIR %CD%\DIST
  25. - MKDIR %CD%\DIST\PCRE
  26. - nuget install pcre -Verbosity quiet -Version 8.33.0.1 -OutputDirectory %CD%\DIST\PCRE
  27. - IF not exist "%SQLITE_ARCHIVE%" appveyor DownloadFile "%SQLITE_URL%" -FileName "%SQLITE_ARCHIVE%"
  28. - 7z x -y "%SQLITE_ARCHIVE%" -o"%CD%\DIST"> nul
  29. - IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
  30. - 7z x -y "%MINGW_ARCHIVE%" -o"%CD%\DIST"> nul
  31. - SET PATH=%CD%\DIST\%MINGW_DIR%\BIN;%CD%\BIN;%PATH%
  32. - IF "%PLATFORM%" == "x64" ( copy C:\OpenSSL-Win64\libeay32.dll %CD%\BIN\libeay64.dll & copy C:\OpenSSL-Win64\libeay32.dll %CD%\BIN\libeay32.dll & copy C:\OpenSSL-Win64\libssl32.dll %CD%\BIN\libssl64.dll & copy C:\OpenSSL-Win64\libssl32.dll %CD%\BIN\libssl32.dll )
  33. ELSE ( copy C:\OpenSSL-Win32\libeay32.dll %CD%\BIN\libeay32.dll & copy C:\OpenSSL-Win32\libssl32.dll %CD%\BIN\libssl32.dll )
  34. - IF "%PLATFORM%" == "x64" ( copy %CD%\DIST\sqlite3.dll %CD%\BIN\sqlite3_64.dll ) ELSE ( copy %CD%\DIST\sqlite3.dll %CD%\BIN\sqlite3_32.dll )
  35. - IF "%PLATFORM%" == "x64" ( copy %CD%\DIST\PCRE\pcre.redist.8.33.0.1\build\native\bin\v100\x64\Release\dynamic\utf8\pcre8.dll %CD%\bin\pcre64.dll ) ELSE ( copy %CD%\DIST\PCRE\pcre.redist.8.33.0.1\build\native\bin\v100\Win32\Release\dynamic\utf8\pcre8.dll %CD%\bin\pcre32.dll )
  36. - git clone --depth 1 https://github.com/nim-lang/csources
  37. - cd csources
  38. - IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat )
  39. - cd ..
  40. build_script:
  41. - bin\nim c koch
  42. - koch boot -d:release
  43. - koch nimble
  44. - nim e tests/test_nimscript.nims
  45. - nim c -o:bin/nimpretty.exe nimpretty/nimpretty.nim
  46. - nim c -r nimpretty/tester.nim
  47. # - nimble install zip -y
  48. # - nimble install opengl -y
  49. # - nimble install sdl1 -y
  50. # - nimble install jester@#head -y
  51. - nim c -d:nimCoroutines --os:genode -d:posix --compileOnly testament/tester
  52. - nim c -d:nimCoroutines testament/tester
  53. test_script:
  54. - testament\tester --pedantic all -d:nimCoroutines
  55. - nim c -r nimdoc\tester
  56. # - koch csource
  57. # - koch zip
  58. deploy: off