-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathconfig.yml
68 lines (63 loc) · 1.54 KB
/
config.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
version: 2.1
executors:
jdk11:
docker:
jobs:
build:
docker:
- image: cimg/openjdk:11.0
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "pom.xml" }}
- run:
name: Cache m2 artifacts
command: mvn dependency:go-offline
- save_cache:
key: dependency-cache-{{ checksum "pom.xml" }}
paths: [ "~/.m2" ]
test:
docker:
- image: cimg/openjdk:11.0
parameters:
mysql:
type: string
environment:
MYSQL_VERSION: "<< parameters.mysql >>"
JAVA_TOOL_OPTIONS: "-Xmx250m"
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "pom.xml" }}
- run:
name: "add libnuma"
command: sudo apt-get update && sudo apt-get -y install libnuma1
- run:
name: Maven Test
command: mvn test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- store_artifacts:
path: test.log
workflows:
version: 2
test:
jobs:
- build:
filters:
branches:
ignore: gh-pages
- test:
name: "test-5.5"
mysql: "5.5"
requires: [ "build" ]
- test:
name: "test-5.7"
mysql: "5.7"
requires: [ "build" ]
- test:
name: "test-8.4"
mysql: "8.4"
requires: [ "build" ]
- test:
name: "test-mariadb"
mysql: "mariadb"
requires: [ "build" ]