-
Notifications
You must be signed in to change notification settings - Fork 11
/
azure-pipelines.yml
53 lines (45 loc) · 1.46 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
variables:
GOBIN: '$(GOPATH)/bin' # Go binaries path
GOROOT: '/usr/local/go1.11' # Go installation path
GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code
steps:
- script: |
mkdir -p '$(GOBIN)'
mkdir -p '$(GOPATH)/pkg'
mkdir -p '$(modulePath)'
shopt -s extglob
shopt -s dotglob
mv !(gopath) '$(modulePath)'
echo '##vso[task.prependpath]$(GOBIN)'
echo '##vso[task.prependpath]$(GOROOT)/bin'
displayName: 'Set up the Go workspace'
- script: |
go version
go get -v -t -d ./...
workingDirectory: '$(modulePath)'
displayName: 'Get dependencies'
- script: |
bash build.sh
workingDirectory: '$(modulePath)'
continueOnError: 'false'
displayName: 'Build app'
- script: |
wget -P data/indiv18/ $(benchmarkDataUrl)/itcont_1e6.txt.gz
gunzip data/indiv18/itcont_1e6.txt.gz
workingDirectory: '$(modulePath)'
continueOnError: 'false'
displayName: 'Prepare benchmarks'
- script: |
./run_all.sh data/indiv18/itcont_1e6.txt
workingDirectory: '$(modulePath)'
continueOnError: 'false'
displayName: 'Run benchmarks'