-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
102 lines (88 loc) · 4.92 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Node.js with React
# Build a Node.js project that uses React.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
stageBuildConfiguration: '$(StageBuildConfig)'
productionBuildConfiguration: '$(ProductionBuildConfig)'
jobs:
- job: Build
displayName: 'Shipping happiness to the world!' # Updated description
steps:
- script: |
echo "Nuevo Foundation"
echo " @@@%%%%%%%%@@@ "
echo " @%*:..........:*@@ "
echo " @%-.. ..-%@ "
echo " @%++++++++++++++:. .*@ "
echo " @@@@@@@@@@@@@@@#===============-:::::-%@@@@@@@@@@@@ "
echo " %#-------------------------------------------------#@ "
echo " %+ .*@ "
echo " %+ .*@ "
echo " %+ .:------------------------------------------:. .*@ "
echo " @%+ :%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%- .*@@ "
echo " @%**+ :%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%- .*-=#% "
echo " @%:.++ :%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%- .*=#:=% "
echo " @-.=++ :%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%- .*=#:.-@ "
echo " @%.:#++ :%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%- .*=#:..%@ "
echo " @.:#++ :%@@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#@@@@@%- .*=#:..% "
echo " @*:#++ :%@@@@#==+@@@@@@@@@@@@@@@@@@@@@@@@@@%==+@@@@%- .*=#:.#@ "
echo " @##++ :%@@@@*===%@@@@@@@@@@@@@@@@@@@@@@@@@*==+%@@@%- .*=#+#@ "
echo " @%#+ :%@@@@#===%@@@@@@@@@@@@@@@@@@@@@@@@@#==+@@@@%- .*#%@@ "
echo " %+ :%@@@@@#*%@@@@@@@@@@@@@@@@@@@@@@@@@@@#*%@@@@%- .*@ "
echo " %+ :%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%- .*@ "
echo " %+ .+##########################################+: .*@ "
echo " %+.................................................*@ "
echo " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ "
displayName: 'Nuvi enters the chat'
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- script: |
npm install
displayName: 'npm install'
#- script : |
# ./node_modules/.bin/eslint src/**/*.{ts,tsx}
# displayName: 'run eslint'
- script: |
npm run test-ci
displayName: 'npm run test-ci'
- script: |
npm run "$(stageBuildConfiguration)"
displayName: 'npm run optimized $(stageBuildConfiguration)'
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
contents: '**/build/**'
targetFolder: $(Build.ArtifactStagingDirectory)
cleanTargetFolder: true
overWrite: true
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
- task: PublishBuildArtifacts@1
displayName: 'Publish src to: $(Build.ArtifactStagingDirectory)'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'stage'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
- script: |
npm run "$(productionBuildConfiguration)"
displayName: 'npm run optimized $(productionBuildConfiguration)'
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
contents: '**/build/**'
targetFolder: $(Build.ArtifactStagingDirectory)
cleanTargetFolder: true
overWrite: true
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
- task: PublishBuildArtifacts@1
displayName: 'Publish src to: $(Build.ArtifactStagingDirectory)'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'production'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))