forked from mumble-voip/mumble-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-pipelines.yml
58 lines (49 loc) · 1.38 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
pool:
vmImage: 'Ubuntu-16.04'
variables:
GOROOT: '/usr/local/go1.11' # Go installation path
GO111MODULE: on
HUGO_VERSION: 0.53
HUGO_SHA: 0e4424c90ce5c7a0c0f7ad24a558dd0c2f1500256023f6e3c0004f57a20ee119
steps:
- script: |
echo '##vso[task.prependpath]$(GOROOT)/bin'
displayName: 'Prepare Go Environment'
- script: |
go version
go get -v .
workingDirectory: 'src'
displayName: 'Get Go Webserver Dependencies'
- script: |
go version
go build -v .
mkdir ../bin
mv mumble-www ../bin
workingDirectory: 'src'
displayName: 'Build Go Webserver'
- script: |
go version
go test
workingDirectory: 'src'
displayName: 'Execute Go Webserver Tests'
- script: |
mkdir hugobin
wget -O ${HUGO_VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
echo "${HUGO_SHA} ${HUGO_VERSION}.tar.gz" | sha256sum -c
tar xf ${HUGO_VERSION}.tar.gz --directory=hugobin hugo
rm -r ${HUGO_VERSION}.tar.gz
hugobin/hugo version
displayName: 'Prepare Hugo Environment'
- script: |
../hugobin/hugo version
../hugobin/hugo
displayName: 'Build Hugo Website'
workingDirectory: 'hugo'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'mumble-www'
targetPath: 'bin'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'public'
targetPath: 'public'