-
Notifications
You must be signed in to change notification settings - Fork 708
139 lines (119 loc) · 5.8 KB
/
CI.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name: CI
on:
pull_request:
branches:
- '**'
# it's annoying to have CI double run on PR/push
# limit push to only final integration branches like develop
push:
branches:
- 'develop'
jobs:
run-base-tests:
runs-on: ubuntu-latest
strategy:
# it's helpful to see exactly which test modules passed/failed
# this finishes all matrix nodes even if one fails along the way
fail-fast: false
# all combinations that we will run in parallel to increase throughput
matrix:
include:
- scala-version: "2.11.12"
BUILD: "enforce code format"
script: './sbt ++$TRAVIS_SCALA_VERSION clean scalafmtSbtCheck scalafmtCheckAll'
- scala-version: "2.11.12"
BUILD: "base"
TEST_TARGET: "scalding-args scalding-base scalding-date maple scalding-quotation scalding-dagon"
script: './scripts/run_test.sh'
- scala-version: "2.12.14"
BUILD: "base"
TEST_TARGET: "scalding-args scalding-base scalding-date maple scalding-quotation scalding-dagon"
script: './scripts/run_test.sh'
- scala-version: "2.11.12"
BUILD: "base"
TEST_TARGET: "scalding-avro scalding-hraven scalding-commons scalding-parquet scalding-parquet-scrooge"
script: './scripts/run_test.sh'
- scala-version: "2.12.14"
BUILD: "base"
TEST_TARGET: "scalding-avro scalding-hraven scalding-commons scalding-parquet scalding-parquet-scrooge"
script: './scripts/run_test.sh'
- scala-version: "2.11.12"
BUILD: "base"
TEST_TARGET: "scalding-core scalding-json scalding-db scalding-cats"
script: './scripts/run_test.sh'
- scala-version: "2.12.14"
BUILD: "base"
TEST_TARGET: "scalding-core scalding-json scalding-db scalding-cats"
script: './scripts/run_test.sh'
- scala-version: "2.11.12"
BUILD: "base"
TEST_TARGET: "scalding-hadoop-test"
script: './scripts/run_test.sh'
- scala-version: "2.12.14"
BUILD: "base"
TEST_TARGET: "scalding-hadoop-test"
script: './scripts/run_test.sh'
- scala-version: "2.11.12"
BUILD: "base"
TEST_TARGET: "scalding-estimators-test"
script: './scripts/run_test.sh'
- scala-version: "2.12.14"
BUILD: "base"
TEST_TARGET: "scalding-estimators-test"
script: './scripts/run_test.sh'
- scala-version: "2.11.12"
BUILD: "base"
TEST_TARGET: "scalding-serialization scalding-spark scalding-beam"
script: './scripts/run_test.sh'
- scala-version: "2.12.14"
BUILD: "base"
TEST_TARGET: "scalding-serialization scalding-spark scalding-beam"
script: './scripts/run_test.sh'
- scala-version: "2.11.12"
BUILD: "base"
TEST_TARGET: "scalding-thrift-macros"
script: './scripts/run_test.sh'
- scala-version: "2.12.14"
BUILD: "base"
TEST_TARGET: "scalding-thrift-macros"
script: './scripts/run_test.sh'
- scala-version: "2.11.12"
BUILD: "test tutorials and matrix tutorials and repl"
TEST_TARGET: "scalding-repl"
script: "./scripts/run_test.sh && ./scripts/build_assembly_no_test.sh scalding-assembly && ./scripts/test_tutorials.sh && ./scripts/build_assembly_no_test.sh scalding-assembly && ./scripts/test_matrix_tutorials.sh"
- scala-version: "2.12.14"
BUILD: "test tutorials and matrix tutorials and repl"
TEST_TARGET: "scalding-repl"
script: "./scripts/run_test.sh && ./scripts/build_assembly_no_test.sh scalding-assembly && ./scripts/test_tutorials.sh && ./scripts/build_assembly_no_test.sh scalding-assembly && ./scripts/test_matrix_tutorials.sh"
- scala-version: "2.11.12"
BUILD: "test repl and typed tutorials and microsite"
script: "./sbt ++$TRAVIS_SCALA_VERSION clean docs/makeMicrosite && ./scripts/build_assembly_no_test.sh scalding-repl && ./scripts/test_repl_tutorial.sh && ./scripts/build_assembly_no_test.sh scalding-core && ./scripts/test_typed_tutorials.sh && ./scripts/build_assembly_no_test.sh execution-tutorial && ./scripts/test_execution_tutorial.sh"
- scala-version: "2.12.14"
BUILD: "test repl and typed tutorials and microsite"
script: "./sbt ++$TRAVIS_SCALA_VERSION clean docs/makeMicrosite && ./scripts/build_assembly_no_test.sh scalding-repl && ./scripts/test_repl_tutorial.sh && ./scripts/build_assembly_no_test.sh scalding-core && ./scripts/test_typed_tutorials.sh && ./scripts/build_assembly_no_test.sh execution-tutorial && ./scripts/test_execution_tutorial.sh"
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0 # fetch all tags for sbt-dynver to properly resolve scalding version
- uses: actions/setup-java@v2
with:
distribution: 'adopt-openj9'
java-version: '8.0.322+6' # non hadoop 3.3 versions build break https://issues.apache.org/jira/browse/HADOOP-16590
- uses: coursier/cache-action@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4
- name: Install Ruby Gems
run: |
gem install sass -v 3.7.4
gem install jekyll -v 3.2.1
- name: "Run Test Variant"
env:
TRAVIS_SCALA_VERSION: ${{ matrix.scala-version }}
BUILD: ${{ matrix.BUILD }}
TEST_TARGET: ${{ matrix.TEST_TARGET }}
run: |
mkdir -p /home/runner/.ivy2/cache/ # some scripts assume that this folder exists
${{ matrix.script }}