use official release for testing.

This commit is contained in:
mratsim 2018-03-28 12:40:14 +02:00
parent 825eca67f5
commit 29b92ea420
2 changed files with 23 additions and 33 deletions

View File

@ -1,37 +1,40 @@
version: '{build}' version: '{build}'
cache: cache:
- nim-0.18.0_x64.zip
- x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z - x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
- i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z - packages -> **\packages.config
- '%LocalAppData%\NuGet\Cache -> **\packages.config'
matrix: matrix:
fast_finish: true fast_finish: true
environment: environment:
matrix: matrix:
- MINGW_DIR: mingw64 - MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
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_DIR: mingw64
MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z # We need to hardcode a mirror otherwise the download fails
MINGW_URL: https://ayera.dl.sourceforge.net/project/mingw-w64/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
NIM_ARCHIVE: nim-0.18.0_x64.zip
NIM_DIR: nim-0.18.0
NIM_URL: https://nim-lang.org/download/nim-0.18.0_x64.zip
platform: x64 platform: x64
- MINGW_DIR: mingw32 - MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
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_DIR: mingw64
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z # We need to hardcode a mirror otherwise the download fails
MINGW_URL: https://ayera.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
NIM_ARCHIVE: nim-0.18.0_x64.zip
NIM_DIR: nim-0.18.0
NIM_URL: https://nim-lang.org/download/nim-0.18.0_x32.zip
platform: x86 platform: x86
install: install:
- MKDIR %CD%\tools_tmp
- IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%" - IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
- 7z x -y "%MINGW_ARCHIVE%" > nul - 7z x -y "%MINGW_ARCHIVE%" -o"%CD%\tools_tmp"> nul
- SET PATH=%CD%\%MINGW_DIR%\bin;%CD%\Nim\bin;%PATH% - IF not exist "%NIM_ARCHIVE%" appveyor DownloadFile "%NIM_URL%" -FileName "%NIM_ARCHIVE%"
- git clone https://github.com/nim-lang/Nim.git %CD%\Nim - 7z x -y "%NIM_ARCHIVE%" -o"%CD%\tools_tmp"> nul
- cd %CD%\Nim - SET PATH=%CD%\tools_tmp\%NIM_DIR%\bin;%CD%\tools_tmp\%MINGW_DIR%\bin;%PATH%
- git clone --depth 1 https://github.com/nim-lang/csources
- cd csources
- IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat )
- cd ..
- bin\nim.exe c koch
- koch.exe boot -d:release
- koch.exe nimble
- cd %CD%
- SET PATH=%PATH%;%CD% - SET PATH=%PATH%;%CD%
build_script: build_script:

View File

@ -7,17 +7,4 @@ description = "A wrapper for the libsecp256k1 C library"
license = "Apache License 2.0" license = "Apache License 2.0"
skipDirs = @["tests"] skipDirs = @["tests"]
requires "nim >= 0.17.0" requires "nim >= 0.18.0"
proc test(name: string, lang: string = "c") =
if not dirExists "build":
mkDir "build"
if not dirExists "nimcache":
mkDir "nimcache"
--run
--nimcache: "nimcache"
switch("out", ("./build/" & name))
setCommand lang, "tests/" & name & ".nim"
task test, "Run Proof-of-Work tests (without mining)":
test "test1"