1# version format 2version: "{build}" 3 4# Operating system (build VM template) 5os: Windows Server 2012 R2 6 7# Platform. 8platform: x64 9 10clone_folder: c:\gopath\src\github.com\dgraph-io\badger 11 12# Environment variables 13environment: 14 GOVERSION: 1.8.3 15 GOPATH: c:\gopath 16 17# scripts that run after cloning repository 18install: 19 - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 20 - go version 21 - go env 22 - python --version 23 24# To run your custom scripts instead of automatic MSBuild 25build_script: 26 # We need to disable firewall - https://github.com/appveyor/ci/issues/1579#issuecomment-309830648 27 - ps: Disable-NetFirewallRule -DisplayName 'File and Printer Sharing (SMB-Out)' 28 - cd c:\gopath\src\github.com\dgraph-io\badger 29 - git branch 30 - go get -t ./... 31 32# To run your custom scripts instead of automatic tests 33test_script: 34 # Unit tests 35 - ps: Add-AppveyorTest "Unit Tests" -Outcome Running 36 - go test -v github.com/dgraph-io/badger/... 37 - go test -v -vlog_mmap=false github.com/dgraph-io/badger/... 38 - ps: Update-AppveyorTest "Unit Tests" -Outcome Passed 39 40notifications: 41 - provider: Email 42 to: 43 - pawan@dgraph.io 44 on_build_failure: true 45 on_build_status_changed: true 46# to disable deployment 47deploy: off 48 49