-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
41 lines (31 loc) · 1.1 KB
/
azure-pipelines.yml
File metadata and controls
41 lines (31 loc) · 1.1 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
pool:
vmImage: 'ubuntu-16.04'
variables: # pipeline-level
BUILD_ENV: 'PROD'
steps:
- script: docker run -d --name=rm-test-mongo mongo
displayName: 'installing latest mongodb docker image'
- script: sudo npm install -g @angular/cli
displayName: 'installing angular7 CLI'
- script: |
sudo mkdir -p $(Build.SourcesDirectory)/appRoot
cd $(Build.SourcesDirectory)/appRoot
sudo ng new demo --defaults
displayName: 'create demo angular project'
- script: |
ls $(Build.SourcesDirectory)
sudo cp -r $(Build.SourcesDirectory)/demo/. $(Build.SourcesDirectory)/appRoot/demo
displayName: 'laying generated demo source over angular project'
- script: |
cd $(Build.SourcesDirectory)/appRoot/demo
sudo npm install --${BUILD_ENV}
sudo npm audit fix
displayName: 'installing app depenedencies'
- script: |
cd $(Build.SourcesDirectory)/appRoot/demo
sudo npm run setup
displayName: 'running mongoose/mongodb setup'
- script: |
cd $(Build.SourcesDirectory)/appRoot/demo
sudo ng build
displayName: 'build the entire application'