-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
42 lines (36 loc) · 1.37 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
os: linux
language: java
jdk: openjdk17
version: ~> 1.0
before_install:
- |-
case $TRAVIS_OS_NAME in
windows)
choco install openjdk11 maven
export PATH=$(cmd.exe //c "refreshenv > nul & C:\Progra~1\Git\bin\bash -c 'echo \$PATH' ")
;;
esac
env:
global: packet=40 local=0 clear_text_plugin=0 RUN_LONG_TEST=true PROFILE=default DB=testr2
import: mariadb-corporation/connector-test-machine:common-build.yml@master
jobs:
include:
- stage: Language
env: srv=mariadb v=10.6 PROFILE=java8
jdk: openjdk8
name: "CS 10.6 - openjdk 8"
- stage: Language
env: srv=mariadb v=10.6 NO_BACKSLASH_ESCAPES=1
jdk: openjdk11
name: "CS 10.6 - openjdk 11 - NO_BACKSLASH_ESCAPES"
- stage: Language
env: srv=mariadb v=10.6 packet=8
jdk: openjdk17
name: "CS 10.6 - openjdk 17 - packet 8M"
script:
- mvn clean -Dmaven.test.skip > /dev/null
- if [ -n "$BENCH" ] ; then mvn package -P bench -Dmaven.test.skip; 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 test -P ${PROFILE} -DjobId=${TRAVIS_JOB_ID}; fi
after_script:
- bash <(curl -s https://codecov.io/bash)