appveyor.yml 1.2 KB

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