forked from SAP/openui5-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
55 lines (50 loc) · 1.43 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: cd-openui5-sample-app
resources:
containers:
- container: mta
image: 'radsoulbeard/agnosticmta:latest'
options: --user 0:0
- container: cfcli
image: 'radsoulbeard/cf-cli'
options: --user 0:0 --privileged
- container: node
image: 'geekykaran/headless-chrome-node-docker:latest'
options: --privileged
trigger:
- master
stages:
- stage: build
displayName: Build MTA for SAP Cloud Platform
jobs:
- job: build
pool:
vmImage: 'ubuntu-latest'
container: mta
steps:
- bash: 'mtaBuild --build-target CF --mtar target/out.mtar build && ls -la'
- publish: target/out.mtar
artifact: out.mtar
- stage: test
displayName: Run Karma Test Suite
jobs:
- job: test
pool:
vmImage: 'ubuntu-latest'
container: node
steps:
- bash: 'npm install && npm run-script test'
- stage: deploy
displayName: Deployment to SAP Cloud Platform (neo)
jobs:
- job: deploy
pool:
vmImage: 'ubuntu-latest'
container: cfcli
steps:
- download: current
artifact: out.mtar
- bash: 'ls -la && cf login -u "$(CF-USER)" -p "$(CF-PASSWORD)" -a "$(CF-API)" -o "$(CF-ORG)" -s "$(CF-SPACE)" && cf deploy $(Pipeline.Workspace)/out.mtar'