forked from microsoft/DLWorkspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
executable file
·49 lines (41 loc) · 1.26 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
# 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
trigger:
- dltsdev
pool:
name: 'DLTS-Platform'
# container: ubuntu:18.04
variables: { SUBSCRIPTION_NAME: "'Bing DLTS'"}
steps:
- script: |
cd src/ClusterBootstrap/
az account set --subscription $(SUBSCRIPTION_NAME)
displayName: 'Set Subscription'
- script: |
cd src/ClusterBootstrap/scripts
CONFIG_TYPE="${CONFIG_TYPE:-cpu}"
echo $CONFIG_TYPE
./set_config.sh $CONFIG_TYPE
cd ..
./step_by_step.sh azure
displayName: 'Deploy DLWorkspace'
- script: |
cd src/ClusterBootstrap/
USER=$(grep -B3 admin_username cluster.yaml | awk '{print $2}')
CONFIG_TYPE="${CONFIG_TYPE:-cpu}"
WAITMIN="${WAITMIN:-5}"
POLLSEC="${POLLSEC:-30}"
echo $CONFIG_TYPE $WAITMIN $POLLSEC
cd scripts
./verify_deployment.sh $USER $CONFIG_TYPE $WAITMIN $POLLSEC
displayName: 'Verify deployment'
- script: |
echo TODO: RUN functional tests!
displayName: 'Functional tests'
- script: |
cd src/ClusterBootstrap/
RESOURCEGRP=$(grep cluster_name cluster.yaml|awk '{print $2}')ResGrp
az group delete --name $RESOURCEGRP --yes
displayName: 'Cleanup'