forked from microsoft/hyperspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (46 loc) · 1.58 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
# Hyperspace Build
trigger:
batch: true
branches:
include:
- master
jobs:
- job: Build
displayName: 'Build sources and run unit tests'
pool:
vmImage: 'ubuntu-latest'
steps:
- script: sbt +clean
displayName: 'Running $sbt +clean'
- script: sbt +update
displayName: 'Running $sbt +update'
- script: sbt +compile
displayName: 'Running $sbt +compile'
- script: sbt +test
displayName: 'Running $sbt +test'
- task: Bash@3
inputs:
filePath: 'script/download_spark.sh'
displayName: 'Downloading spark'
- task: PythonScript@0
inputs:
scriptSource: 'filePath'
scriptPath: 'run-tests.py'
displayName: 'Running python tests'
env:
SPARK_HOME: $(Build.SourcesDirectory)/spark-2.4.2-bin-hadoop2.7
# If not a pull request, publish artifacts.
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- script: sbt +package
displayName: 'Running $sbt +package'
- task: CopyFiles@2
displayName: 'Copy hyperspace-core JAR'
inputs:
sourceFolder: '$(Build.SourcesDirectory)/target/'
contents: '**/*.jar'
targetFolder: '$(Build.ArtifactStagingDirectory)/hyperspace-core/'
- task: PublishBuildArtifacts@1
displayName: 'Publish Hyperspace artifacts'
inputs:
artifactName: 'hyperspace-core'
pathtoPublish: '$(Build.ArtifactStagingDirectory)/hyperspace-core/'