AppVeyor: add Nim bindings test suite

This commit is contained in:
Stefan Talpalaru 2020-02-05 12:47:29 +01:00
parent 1eac158237
commit 8e5f8c8979
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 21 additions and 0 deletions

View File

@ -15,8 +15,15 @@ environment:
- VS: 2017-32bit - VS: 2017-32bit
- VS: 2015 - VS: 2015
- GO: true - GO: true
- NIM: true
cache: cache:
- C:\.hunter\_Base\Cache -> cmake\Hunter\init.cmake - C:\.hunter\_Base\Cache -> cmake\Hunter\init.cmake
- NimBinaries
matrix:
# don't stop at the first failed job
fast_finish: false
before_build: before_build:
# Add ninja to PATH. This is done for VS2017 by vsdevcmd, but not for VS2015. # Add ninja to PATH. This is done for VS2017 by vsdevcmd, but not for VS2015.
@ -49,6 +56,20 @@ build_script:
go generate ./bindings/go/evmc go generate ./bindings/go/evmc
go test -v ./bindings/go/evmc go test -v ./bindings/go/evmc
} }
elseif ($env:NIM) {
$env:PATH = "C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;$env:PATH"
# build the Nim compiler
Remove-item alias:curl
curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus-build-system/master/scripts/build_nim.sh
$ErrorActionPreference = 'Continue'
env MAKE="mingw32-make -j2" bash build_nim.sh Nim csources dist/nimble NimBinaries
$env:PATH = "$pwd\Nim\bin;$env:PATH"
# run the test suite
cd bindings\nim
nimble install -y
nimble test
cd ..\..
}
after_build: after_build:
- ps: >- - ps: >-