azure-pipelines.yml 988 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. jobs:
  2. - template: azure-pipelines.template.yml
  3. parameters:
  4. name: linux
  5. vmImage: 'ubuntu-16.04'
  6. - template: azure-pipelines.template.yml
  7. parameters:
  8. name: windows
  9. vmImage: 'vs2017-win2016'
  10. - template: azure-pipelines.template.yml
  11. parameters:
  12. name: macos
  13. vmImage: 'macOS-10.13'
  14. - job: linux_coverage
  15. dependsOn: linux
  16. condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
  17. timeoutInMinutes: 30
  18. pool:
  19. vmImage: 'Ubuntu 16.04'
  20. variables:
  21. GOPATH: '$(system.defaultWorkingDirectory)'
  22. CODECOV_TOKEN: '$(coverage.token)'
  23. steps:
  24. - checkout: none
  25. - script: |
  26. go version
  27. go get -v -t -d v2ray.com/core/...
  28. go get -v -t -d v2ray.com/ext/...
  29. workingDirectory: '$(system.defaultWorkingDirectory)'
  30. displayName: 'Fetch sources'
  31. - script: |
  32. cd ./src/v2ray.com/core
  33. bash ./testing/coverage/coverall
  34. workingDirectory: '$(system.defaultWorkingDirectory)'
  35. displayName: 'Coverage'