appveyor.yml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. - MKDIR %CD%\DIST
  24. - MKDIR %CD%\DIST\PCRE
  25. - nuget install pcre -Verbosity quiet -Version 8.33.0.1 -OutputDirectory %CD%\DIST\PCRE
  26. - IF not exist "%SQLITE_ARCHIVE%" appveyor DownloadFile "%SQLITE_URL%" -FileName "%SQLITE_ARCHIVE%"
  27. - 7z x -y "%SQLITE_ARCHIVE%" -o"%CD%\DIST"> nul
  28. - IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
  29. - 7z x -y "%MINGW_ARCHIVE%" -o"%CD%\DIST"> nul
  30. - SET PATH=%CD%\DIST\%MINGW_DIR%\BIN;%CD%\BIN;%PATH%
  31. - 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 )
  32. ELSE ( copy C:\OpenSSL-Win32\libeay32.dll %CD%\BIN\libeay32.dll & copy C:\OpenSSL-Win32\libssl32.dll %CD%\BIN\libssl32.dll )
  33. - IF "%PLATFORM%" == "x64" ( copy %CD%\DIST\sqlite3.dll %CD%\BIN\sqlite3_64.dll ) ELSE ( copy %CD%\DIST\sqlite3.dll %CD%\BIN\sqlite3_32.dll )
  34. - 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 )
  35. - git clone --depth 1 https://github.com/nim-lang/csources
  36. - cd csources
  37. - IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat )
  38. - cd ..
  39. build_script:
  40. - bin\nim c koch
  41. - koch boot -d:release
  42. - koch nimble
  43. - nim e tests/test_nimscript.nims
  44. - nimble install zip -y
  45. - nimble install opengl
  46. - nimble install sdl1
  47. - nimble install jester@#head
  48. - nimble install niminst
  49. - nim c --taintMode:on -d:nimCoroutines tests/testament/tester
  50. test_script:
  51. - tests\testament\tester --pedantic all -d:nimCoroutines
  52. # - koch csource
  53. # - koch zip
  54. deploy: off