forked from mshtelma/databricks_ml_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
53 lines (42 loc) · 1.08 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
variables:
- group: Databricks-environment
trigger:
batch: true
branches:
include:
- '*'
tags:
include:
- v*.*
- prod
paths:
exclude:
- .github/*
- mlruns/*
stages:
- stage: onPush
jobs:
- job: onPushJob
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: env | sort
displayName: 'Environment / Context'
- task: UsePythonVersion@0
displayName: 'Use Python 3.7'
inputs:
versionSpec: 3.7
- checkout: self
persistCredentials: true
clean: true
displayName: 'Checkout & Build.Reason: $(Build.Reason) & Build.SourceBranchName: $(Build.SourceBranchName)'
- script: |
python -m pip install --upgrade pip
pip install databricks_cli
displayName: 'Install dependencies'
- script: |
python deploy/deploy.py --branch_name $(Build.SourceBranchName) --pr_branch $(System.PullRequest.SourceBranch)
env:
DATABRICKS_HOST: $(DATABRICKS_HOST)
DATABRICKS_TOKEN: $(DATABRICKS_TOKEN)
displayName: 'Run integration test on Databricks'