mirror of
https://github.com/luxfi/zapdb.git
synced 2026-10-30 15:12:20 +00:00
We introduce a new option ValueLogLoadingMode, which controls whether the value log is read via mmap, or by standard File I/O. Methods that fall in the path to reading the value from log now take an additional argument for the slice which would be used to read the data, if the ValueLoadLoadingMode is set to FileIO.
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
# version format
|
|
version: "{build}"
|
|
|
|
# Operating system (build VM template)
|
|
os: Windows Server 2012 R2
|
|
|
|
# Platform.
|
|
platform: x64
|
|
|
|
clone_folder: c:\gopath\src\github.com\dgraph-io\badger
|
|
|
|
# Environment variables
|
|
environment:
|
|
GOVERSION: 1.8.3
|
|
GOPATH: c:\gopath
|
|
|
|
# scripts that run after cloning repository
|
|
install:
|
|
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
|
- go version
|
|
- go env
|
|
- python --version
|
|
|
|
# To run your custom scripts instead of automatic MSBuild
|
|
build_script:
|
|
# We need to disable firewall - https://github.com/appveyor/ci/issues/1579#issuecomment-309830648
|
|
- ps: Disable-NetFirewallRule -DisplayName 'File and Printer Sharing (SMB-Out)'
|
|
- cd c:\gopath\src\github.com\dgraph-io\badger
|
|
- git branch
|
|
- go get -t ./...
|
|
|
|
# To run your custom scripts instead of automatic tests
|
|
test_script:
|
|
# Unit tests
|
|
- ps: Add-AppveyorTest "Unit Tests" -Outcome Running
|
|
- go test -v github.com/dgraph-io/badger/...
|
|
- go test -v -vlog_mmap=false github.com/dgraph-io/badger/...
|
|
- ps: Update-AppveyorTest "Unit Tests" -Outcome Passed
|
|
|
|
notifications:
|
|
- provider: Email
|
|
to:
|
|
- [email protected]
|
|
on_build_failure: true
|
|
on_build_status_changed: true
|
|
# to disable deployment
|
|
deploy: off
|
|
|