forked from mumble-voip/mumble-www
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.azure-pipelines.yml
More file actions
55 lines (52 loc) · 1.45 KB
/
.azure-pipelines.yml
File metadata and controls
55 lines (52 loc) · 1.45 KB
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
pool:
vmImage: 'ubuntu-latest'
variables:
HUGO_VERSION: 0.72.0
HUGO_SHA: 11c46ecc3ad6d96f94515358e5528d01dfe88f4956b56027c85e9a516348ef12
jobs:
- job: go_webserver
steps:
- script: |
go version
displayName: 'Go Version Information'
- 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'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'mumble-www'
targetPath: 'bin'
- job: hugo
steps:
- script: |
set -e
mkdir hugobin
wget --no-verbose -O ${HUGO_VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
echo "${HUGO_SHA} ${HUGO_VERSION}.tar.gz" | sha256sum --strict --check
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: 'public'
targetPath: 'public'