-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitlab-ci.yml
48 lines (42 loc) · 1.33 KB
/
.gitlab-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
image: gradle:jdk8
# DinD service is required for Testcontainers
services:
- name: docker:dind
# explicitly disable tls to avoid docker startup interruption
command: [ "--tls=false" ]
variables:
# Instruct Testcontainers to use the daemon of DinD.
DOCKER_HOST: "tcp://docker:2375"
# Instruct Docker not to start over TLS.
DOCKER_TLS_CERTDIR: ""
# Improve performance with overlayfs.
DOCKER_DRIVER: overlay2
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle/wrapper
- .gradle/caches
style-check:
stage: .pre
script:
- ./gradlew scalastyleMainCheck
build:
stage: build
script:
- echo 'testcontainers.reuse.enable=true' >> ~/.testcontainers.properties && ./gradlew clean test build $ENV
parallel:
matrix:
- ENV: [
'-PscalaVersion=2.12 -PsparkVersion=3.1.2 -PscalaCompt=2.12.15',
'-PscalaVersion=2.12 -PsparkVersion=3.2.0 -PscalaCompt=2.12.15',
'-PscalaVersion=2.12 -PsparkVersion=2.4.8 -PscalaCompt=2.12.15',
'-PscalaVersion=2.11 -PsparkVersion=2.4.8 -PscalaCompt=2.11.12',
'-PscalaVersion=2.11 -PsparkVersion=2.3.2 -PscalaCompt=2.11.12',
'-PscalaVersion=2.13 -PsparkVersion=3.2.0 -PscalaCompt=2.13.7',
]
artifacts:
paths:
- spark/build/libs/*.jar
expire_in: 1 week