This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
/
azure-pipelines.yml
111 lines (103 loc) · 3.16 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Hyperspace Build
trigger:
batch: true
branches:
include:
- master
jobs:
- job: Build_Spark2_4_2_11
displayName: 'Build sources and run unit tests for Spark 2.4 / Scala 2.11'
pool:
vmImage: 'ubuntu-18.04'
steps:
- template: 'ci/linux_test.yml'
parameters:
sparkVersionUnderBar: "2_4"
sparkVersion: "2.4"
scalaVersion: "2.11.12"
- job: Build_Spark2_4_2_12
displayName: 'Build sources and run unit tests for Spark 2.4 / Scala 2.12'
pool:
vmImage: 'ubuntu-18.04'
steps:
- template: 'ci/linux_test.yml'
parameters:
sparkVersionUnderBar: "2_4"
sparkVersion: "2.4"
scalaVersion: "2.12.8"
- job: Build_Spark3_0_2_12
displayName: 'Build sources and run unit tests for Spark 3.0 / Scala 2.12'
pool:
vmImage: 'ubuntu-18.04'
steps:
- template: 'ci/linux_test.yml'
parameters:
sparkVersionUnderBar: "3_0"
sparkVersion: "3.0"
scalaVersion: "2.12.8"
- job: Build_Spark3_1_2_12
displayName: 'Build sources and run unit tests for Spark 3.1 / Scala 2.12'
pool:
vmImage: 'ubuntu-18.04'
steps:
- template: 'ci/linux_test.yml'
parameters:
sparkVersionUnderBar: "3_1"
sparkVersion: "3.1"
scalaVersion: "2.12.8"
- job: Build_Spark2_4_2_11_WIN
displayName: 'Build sources and run unit tests for Spark 2.4 / Scala 2.11 on Windows'
pool:
vmImage: 'windows-2019'
steps:
- template: 'ci/windows_test.yml'
parameters:
sparkVersionUnderBar: "2_4"
scalaVersion: "2.11.12"
- job: Build_Spark2_4_2_12_WIN
displayName: 'Build sources and run unit tests for Spark 2.4 / Scala 2.12 on Windows'
pool:
vmImage: 'windows-2019'
steps:
- template: 'ci/windows_test.yml'
parameters:
sparkVersionUnderBar: "2_4"
scalaVersion: "2.12.8"
- job: Build_Spark3_0_2_12_WIN
displayName: 'Build sources and run unit tests for Spark 3.0 / Scala 2.12 on Windows'
pool:
vmImage: 'windows-2019'
steps:
- template: 'ci/windows_test.yml'
parameters:
sparkVersionUnderBar: "3_0"
scalaVersion: "2.12.8"
- job: PythonTest
displayName: 'Run Python tests'
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: UsePythonVersion@0
displayName: 'Set Python version'
inputs:
versionSpec: '2.7'
addToPath: true
- task: JavaToolInstaller@0
displayName: 'Set Java version'
inputs:
versionSpec: '8'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- script: sbt ++2.11.12 "project spark2_4" clean update compile
displayName: 'Running $sbt clean & update & compile'
- 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