forked from RMLio/dataio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (64 loc) · 2.45 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
stages:
- lint
- unittests
- deploy
include:
# Make sure the CHANGELOG is always updated
- project: 'rml/util/ci-templates'
ref: main
file: 'CHANGELOG.gitlab-ci.yml'
- project: 'rml/util/ci-templates'
ref: main
file: 'Maven-Central.gitlab-ci.yml'
variables:
# This will suppress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds.
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "-s $CI_PROJECT_DIR/.m2/settings.xml --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
cache:
key: ${CI_JOB_NAME}
paths:
- .m2/repository
# Cancel pipeline if a newer pipeline is running
default:
interruptible: true
###############################
# #
# Unittests #
# #
###############################
General:
stage: unittests
image: maven:3-eclipse-temurin-17
retry: 2
services:
- name: docker:23.0.5-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:
- 'mvn clean'
script:
- 'mvn $MAVEN_CLI_OPTS -Dtest="$TEST" test'
parallel:
matrix:
- TEST: [
# iterator
CSVIteratorTest, CSVWIteratorTest, ExcelIteratorTest, HTMLIteratorTest, JSONIteratorTest, ODSIteratorTest, XMLIteratorTest,
# stream
CSVStreamTest, CSVWStreamTest, ExcelStreamTest, JSONStreamTest, XMLStreamTest, ODSStreamTest,
# general access
DatabaseTest$$*, LocalAccessTest, SPARQLTest, WoTTest,
# Flow
CSVObservableTest, CSVWObservableTest, ExcelObservableTest, JSONObservableTest, ODSObservableTest, XMLObservableTest,
# Serializability
IteratorSerializabilityTest, StreamSerializabilityTest, ObservableSerializabilityTest
]
except:
- main