nimgenEx/appveyor.yml
Ganesh Viswanathan b8670b1bf1 Setup CI
2018-07-09 09:11:25 -05:00

55 lines
1.8 KiB
YAML

version: '{build}'
cache:
- i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
- nim-0.18.0_x32.zip
# - dlls.zip
matrix:
fast_finish: true
environment:
matrix:
- MINGW_DIR: mingw32
MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-posix/dwarf/i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z/download
MINGW_ARCHIVE: i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
NIM_URL: https://nim-lang.org/download/nim-0.18.0_x32.zip
NIM_ARCHIVE: nim-0.18.0_x32.zip
NIM_VERSION: nim-0.18.0
DLLS_URL: http://nim-lang.org/download/dlls.zip
DLLS_ARCHIVE: dlls.zip
BASE_DIR: c:\projects
platform: x86
install:
- CD %BASE_DIR%
- IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
- 7z x -y "%MINGW_ARCHIVE%"> nul
- IF not exist "%NIM_ARCHIVE%" appveyor DownloadFile "%NIM_URL%" -FileName "%NIM_ARCHIVE%"
- 7z x -y "%NIM_ARCHIVE%"> nul
- SET PATH=%BASE_DIR%\%MINGW_DIR%\BIN;%BASE_DIR%\%NIM_VERSION%\bin;%USERPROFILE%\.nimble\bin;%PATH%
# - git clone --depth 1 https://github.com/nim-lang/nim
# - cd nim
# - git clone --depth 1 https://github.com/nim-lang/csources
# - cd csources
# - IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat )
# - cd ..
# - IF not exist "%DLLS_ARCHIVE%" appveyor DownloadFile "%DLLS_URL%" -FileName "%DLLS_ARCHIVE%"
# - 7z x -y "%DLLS_ARCHIVE%" -o"%CD%\bin"> nul
# - bin\nim c -d:release koch
# - koch boot -d:release
# - koch nimble -d:release
# - SET PATH=%CD%\bin;%PATH%
# - cd ..
build_script:
- nimble install -y
test_script:
- nimble test
deploy: off
on_finish:
- 7z a -r buildlogs.zip %USERPROFILE%\.nimble\pkgs
- appveyor PushArtifact buildlogs.zip