azure-pipelines.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. jobs:
  2. - job: Linux
  3. pool:
  4. vmImage: 'Ubuntu 16.04'
  5. variables:
  6. GOPATH: '$(system.defaultWorkingDirectory)'
  7. steps:
  8. - checkout: none
  9. - script: |
  10. go version
  11. go get -v -t -d v2ray.com/core/...
  12. go get -v -t -d v2ray.com/ext/...
  13. workingDirectory: '$(system.defaultWorkingDirectory)'
  14. displayName: 'Fetch sources'
  15. - script: |
  16. go test -p 1 -tags json -v v2ray.com/core/...
  17. workingDirectory: '$(system.defaultWorkingDirectory)'
  18. displayName: 'Test'
  19. - job: MacOS
  20. pool:
  21. vmImage: 'macOS-10.13'
  22. variables:
  23. GOPATH: '$(system.defaultWorkingDirectory)'
  24. steps:
  25. - checkout: none
  26. - script: |
  27. go version
  28. go get -v -t -d v2ray.com/core/...
  29. go get -v -t -d v2ray.com/ext/...
  30. workingDirectory: '$(system.defaultWorkingDirectory)'
  31. displayName: 'Fetch sources'
  32. - script: |
  33. go test -p 1 -tags json -v v2ray.com/core/...
  34. workingDirectory: '$(system.defaultWorkingDirectory)'
  35. displayName: 'Test'
  36. - job: Windows
  37. pool:
  38. vmImage: 'vs2017-win2016'
  39. variables:
  40. GOPATH: '$(system.defaultWorkingDirectory)'
  41. steps:
  42. - checkout: none
  43. - script: |
  44. go version
  45. go get -v -t -d v2ray.com/core/...
  46. go get -v -t -d v2ray.com/ext/...
  47. workingDirectory: '$(system.defaultWorkingDirectory)'
  48. displayName: 'Fetch sources'
  49. - script: |
  50. go test -p 1 -tags json -v v2ray.com/core/...
  51. workingDirectory: '$(system.defaultWorkingDirectory)'
  52. displayName: 'Test'