forked from pathcl/fabrikate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
42 lines (35 loc) · 944 Bytes
/
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
schedules:
- cron: "0 0 * * *"
displayName: "Daily midnight build"
branches:
include:
- master
always: true
pool:
vmImage: "Ubuntu-16.04"
variables:
linterTimeout: "5m"
steps:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/go-tool
- task: GoTool@0
inputs:
version: "1.15"
- script: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.30.0
./bin/golangci-lint run --timeout $(linterTimeout)
displayName: "Lint"
- script: |
scripts/build clean
displayName: "Clean"
- script: |
HELM_URL=https://get.helm.sh
HELM_TGZ=helm-v3.1.2-linux-amd64.tar.gz
wget -q ${HELM_URL}/${HELM_TGZ}
tar xzfv ${HELM_TGZ}
PATH=`pwd`/linux-amd64/:$PATH
displayName: "Install helm"
- task: Go@0
displayName: Test
inputs:
command: test
arguments: -v -race ./...