2018-05-21 22:02:20 +00:00
|
|
|
version: '{build}'
|
|
|
|
|
|
|
|
cache:
|
2018-09-03 18:12:02 +00:00
|
|
|
- x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z -> appveyor.yml
|
|
|
|
- i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z -> appveyor.yml
|
2018-05-21 22:02:20 +00:00
|
|
|
|
2018-09-03 18:12:02 +00:00
|
|
|
# We always want 32 and 64-bit compilation
|
2018-05-21 22:02:20 +00:00
|
|
|
matrix:
|
2018-09-03 18:12:02 +00:00
|
|
|
fast_finish: false # set this flag to immediately finish build once one of the jobs fails.
|
2018-05-21 22:02:20 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- MINGW_DIR: mingw32
|
2018-09-03 03:36:21 +00:00
|
|
|
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
|
2018-05-21 22:02:20 +00:00
|
|
|
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
|
|
|
|
platform: x86
|
|
|
|
- MINGW_DIR: mingw64
|
2018-09-03 03:36:21 +00:00
|
|
|
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
|
2018-05-21 22:02:20 +00:00
|
|
|
MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
|
|
|
|
platform: x64
|
|
|
|
|
|
|
|
install:
|
|
|
|
- setlocal EnableExtensions EnableDelayedExpansion
|
2018-09-03 03:36:21 +00:00
|
|
|
- MKDIR %CD%\bin
|
2018-05-21 22:02:20 +00:00
|
|
|
- IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
|
|
|
|
- 7z x -y "%MINGW_ARCHIVE%" > nul
|
2018-09-03 03:36:21 +00:00
|
|
|
- SET PATH=%CD%\%MINGW_DIR%\bin;%CD%\bin;%CD%\Nim\bin;%PATH%
|
|
|
|
- git clone https://github.com/status-im/Nim.git
|
2018-05-21 22:02:20 +00:00
|
|
|
- cd %CD%\Nim
|
|
|
|
- git clone --depth 1 https://github.com/nim-lang/csources
|
|
|
|
- cd csources
|
|
|
|
- IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat )
|
|
|
|
- cd ..
|
|
|
|
- bin\nim c koch
|
|
|
|
- koch boot -d:release
|
|
|
|
- koch nimble
|
|
|
|
build_script:
|
2018-09-03 03:36:21 +00:00
|
|
|
- cd C:\projects\%APPVEYOR_PROJECT_SLUG%
|
2018-09-03 18:12:02 +00:00
|
|
|
- nimble install -y
|
2018-05-21 22:02:20 +00:00
|
|
|
test_script:
|
|
|
|
- nimble test
|
|
|
|
|
|
|
|
deploy: off
|