-
Notifications
You must be signed in to change notification settings - Fork 231
/
.travis.yml
58 lines (53 loc) · 1.82 KB
/
.travis.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
language: java
jdk: openjdk17
version: ~> 1.0
before_install:
- |-
case $TRAVIS_OS_NAME in
windows)
choco install microsoft-openjdk17 maven
export PATH=$(cmd.exe //c "refreshenv > nul & C:\Progra~1\Git\bin\bash -c 'echo \$PATH' ")
;;
esac
env:
global: local=0 RUN_LONG_TEST=true PROFILE=default DB=testj CLEAR_TEXT=0
import: mariadb-corporation/connector-test-machine:common-build.yml@master
jobs:
include:
- stage: Language
env: srv=mariadb v=11.6-rc packet=40 PROFILE=java8
jdk: openjdk8
name: "CS 11.6 - openjdk 8"
- stage: Language
env: srv=mariadb v=11.4 packet=8 PROFILE=java11
jdk: openjdk11
name: "CS 11.4 - openjdk 11 - packet 8M"
- stage: Language
env: srv=mariadb v=11.4 packet=40
jdk: openjdk17
name: "CS 11.4 - openjdk 17 - packet 40M"
- stage: Language
env: srv=mariadb v=11.4
jdk: openjdk21
name: "CS 11.4 - openjdk 21"
- stage: Benchmarks
env: srv=mariadb v=10.6 local=1 BENCH=1
name: "Benchmarks"
- stage: Language
env: srv=mariadb v=10.6 packet=40
jdk: openjdk21
name: "CS 10.6 - openjdk 21"
script:
- echo $PROFILE
- mvn clean -Dmaven.test.skip -P $PROFILE
- |-
if [ "java8" == "$PROFILE" ]; then
rm -R .mvn
java -version
mvn -version
fi
- if [ -n "$BENCH" ] ; then mvn package -P bench -Dmaven.test.skip -Dmaven.javadoc.skip=true ; fi
- if [ -n "$BENCH" ] ; then java -Duser.country=US -Duser.language=en -DTEST_PORT=$TEST_DB_PORT -DTEST_HOST=$TEST_DB_HOST -DTEST_USERNAME=$TEST_DB_USER -DTEST_PASSWORD=$TEST_DB_PASSWORD -jar target/benchmarks.jar; fi
- if [ -z "$BENCH" ] ; then MAVEN_SKIP_RC=true MAVEN_OPTS="-Xmx2g" mvn clean test -P ${PROFILE} -DjobId=${TRAVIS_JOB_ID}; fi
after_script:
- bash <(curl -s https://codecov.io/bash)