appveyor.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: "{build}"
  2. image: 'Visual Studio 2017'
  3. # platform: x64
  4. clone_folder: c:\gopath\src\github.com\go-ego\riot
  5. # max_jobs: 1
  6. environment:
  7. global:
  8. GOPATH: C:\gopath
  9. # CC: gcc.exe
  10. matrix:
  11. - GOARCH: amd64
  12. # - GOARCH: 386
  13. GOVERSION: 1.10.3
  14. # GOPATH: c:\gopath
  15. install:
  16. - set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
  17. - git submodule update --init
  18. - rmdir C:\go /s /q
  19. - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-%GOARCH%.zip
  20. - 7z x go%GOVERSION%.windows-%GOARCH%.zip -y -oC:\ > NUL
  21. - go version
  22. - go env
  23. # - gcc --version
  24. # To run your custom scripts instead of automatic MSBuild
  25. build_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\go-ego\riot
  29. - git branch
  30. - go get -t ./...
  31. # To run your custom scripts instead of automatic tests
  32. test_script:
  33. # Unit tests
  34. - ps: Add-AppveyorTest "Unit Tests" -Outcome Running
  35. # - go test -u github.com/go-ego/riot/...
  36. - go test -v github.com/go-ego/riot/...
  37. - ps: Update-AppveyorTest "Unit Tests" -Outcome Passed