From 231d0e0241008b29c47db7c0a98615c7b35b15c5 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Sun, 2 Sep 2018 21:36:21 -0600 Subject: [PATCH] appveyor: build with status-im/Nim --- appveyor.yml => .appveyor.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) rename appveyor.yml => .appveyor.yml (73%) diff --git a/appveyor.yml b/.appveyor.yml similarity index 73% rename from appveyor.yml rename to .appveyor.yml index 0d52e0cd..582f2a05 100644 --- a/appveyor.yml +++ b/.appveyor.yml @@ -11,26 +11,22 @@ environment: matrix: - MINGW_DIR: mingw32 - 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 + 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 MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z platform: x86 - MINGW_DIR: mingw64 - 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 + 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 MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z platform: x64 install: - setlocal EnableExtensions EnableDelayedExpansion + - MKDIR %CD%\bin - IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%" - 7z x -y "%MINGW_ARCHIVE%" > nul - - SET PATH=%CD%\%MINGW_DIR%\bin;%CD%\Nim\bin;%PATH% - - git clone https://github.com/nim-lang/Nim.git + - SET PATH=%CD%\%MINGW_DIR%\bin;%CD%\bin;%CD%\Nim\bin;%PATH% + - git clone https://github.com/status-im/Nim.git - cd %CD%\Nim - - git remote add statusim https://github.com/status-im/Nim.git - - git fetch statusim - - git config --global user.email "you@example.com" - - git config --global user.name "Your Name" - - for /f "tokens=*" %%G IN ('git branch -a --list ^"statusim/status-autopatch-*^"') DO (git merge %%G) - git clone --depth 1 https://github.com/nim-lang/csources - cd csources - IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat ) @@ -39,8 +35,8 @@ install: - koch boot -d:release - koch nimble build_script: - - cd C:\projects\nim-asyncdispatch2 - - nimble install -y + - cd C:\projects\%APPVEYOR_PROJECT_SLUG% + - nimble install -dy test_script: - nimble test