This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathazure-pipelines.yml
61 lines (54 loc) · 1.7 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
trigger:
- master
pool:
vmImage: "ubuntu-latest"
stages:
- stage: spektate_ci
jobs:
- job: build_and_test
pool:
vmImage: "Ubuntu 16.04"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"
- script: |
yarn install
yarn lint
yarn build
workingDirectory: "./frontend"
displayName: "Frontend install, lint and build"
- script: |
yarn install
yarn lint
yarn build
yarn test
workingDirectory: "./backend"
displayName: "Backend install, lint and build"
- script: |
set -e
cd packages/spektate
yarn
yarn build
yarn lint
yarn test
displayName: "Spektate build, lint and test"
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/*coverage.xml"
reportDirectory: "$(System.DefaultWorkingDirectory)/**/coverage"
- job: docker_build
pool:
vmImage: "Ubuntu 16.04"
steps:
- task: Docker@2
inputs:
containerRegistry: "spektateacrconnection"
repository: "spektate"
command: "buildAndPush"
Dockerfile: "**/Dockerfile"
tags: "spektate-$(Build.SourceBranchName)-$(Build.BuildId)"
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: Build docker image