-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
57 lines (49 loc) · 1.68 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
variables:
project_name: AngularCiApp
jobs:
- job: Build
steps:
- task: UseNode@1
inputs:
version: '12.18.3'
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- task: Npm@1
displayName: 'npm run test'
inputs:
command: custom
verbose: false
customCommand: 'run-script test'
- task: PublishTestResults@2
displayName: 'Publish Test Results **/testresults/junit/unit-test-result.xml'
inputs:
testResultsFiles: '**/testresults/junit/unit-test-result.xml'
condition: always()
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage from **/testresults/coverage/code-coverage.xml'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '**/testresults/coverage/code-coverage.xml'
condition: always()
- task: Npm@1
displayName: 'npm build'
inputs:
command: custom
verbose: false
customCommand: 'run build'
- task: PublishPipelineArtifact@1
displayName: 'Publish Pipeline Artifact'
inputs:
artifact: dist
- task: AmazonWebServices.aws-vsts-tools.CloudFormationCreateOrUpdateStack.CloudFormationCreateOrUpdateStack@1
displayName: 'Create/Update Stack: preview-$(Build.SourceBranchName)'
inputs:
awsCredentials: AzureS3MJRStaging
regionName: 'sa-east-1'
stackName: 'preview-$(Build.SourceBranchName)'
templateFile: 's3-cloudformation.json'
templateParametersSource: inline
templateParameters: '[{ "ParameterKey": "BucketName", "ParameterValue": "$(Build.SourceBranchName) " }]'
enabled: false