forked from trustwallet/watchmarket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
62 lines (54 loc) · 1.37 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
trigger:
branches:
include:
- master
- version/blockatlas
tags:
include:
- '*'
pr:
branches:
include:
- master
- version/blockatlas
pool:
vmImage: 'Ubuntu 16.04'
variables:
GOVERSION: '1.13'
jobs:
- job: environment
steps:
- task: GoTool@0
inputs:
version: '$(GOVERSION)'
displayName: 'Go Tool'
- task: Go@0
inputs:
command: 'get'
arguments: '-v -t -d ./...'
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Get dependencies'
- job: go_vet
dependsOn: environment
condition: succeeded()
steps:
- script: make govet
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Run go vet'
- job: unit_tests
dependsOn: environment
condition: succeeded()
steps:
- script: make test
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Run unit tests'
- script: bash <(curl -s https://codecov.io/bash) -f coverage.txt
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Upload coverage to codecov.io'
- job: build
dependsOn: environment
condition: succeeded()
steps:
- script: make go-build
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Build'