Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
rusher committed Mar 9, 2021
2 parents 6994abe + 3473b0e commit d8dcd72
Show file tree
Hide file tree
Showing 70 changed files with 993 additions and 1,290 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Keep empty directories: >> .gitignore/.git*
/target/
.idea

/r2dbc-mariadb.iml
77 changes: 39 additions & 38 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,56 @@
#dist: trusty
sudo: false
os: linux
language: java
services: docker
jdk: openjdk11
addons:
hosts:
- mariadb.example.com
jdk: openjdk11

before_install:
- chmod +x .travis/script.sh .travis/build/build.sh .travis/gen-ssl.sh .travis/build/docker-entrypoint.sh .travis/sql/*
- chmod 777 .travis/build/
- echo "MAVEN_OPTS='-Xmx384m'" > ~/.mavenrc
- git clone https://github.com/mariadb-corporation/connector-test-machine.git

install:
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- mkdir tmp
- .travis/gen-ssl.sh mariadb.example.com tmp
- export PROJ_PATH=`pwd`
- export SSLCERT=$PROJ_PATH/tmp
- export ENTRYPOINT=$PROJ_PATH/.travis/sql
- export TEST_SERVER_SSL_CERT=$SSLCERT/server.crt
- export TEST_CLIENT_SSL_CERT=$SSLCERT/client.crt
- export TEST_CLIENT_KEY=$SSLCERT/client.key
- |-
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' ")
connector-test-machine/launch.bat -t "$srv" -v "$v" -d testr2
;;
linux)
source connector-test-machine/launch.sh -t "$srv" -v "$v" -d testr2
;;
esac
cache:
directories:
- $HOME/.m2

matrix:
jobs:
fast_finish: true
allow_failures:
- env: DB=build
- env: DB=mysql:5.6
- env: DB=mysql:5.7
- env: DB=mysql:8.0 ADDITIONAL_CONF=--default-authentication-plugin=mysql_native_password --caching_sha2_password_private_key_path=/etc/sslcert/server.key --caching_sha2_password_public_key_path=/etc/sslcert/public.key --sha256_password_public_key_path=/etc/sslcert/public.key --sha256_password_private_key_path=/etc/sslcert/server.key
- env: srv=skysql
- env: srv=skysql-ha
- env: srv=mariadb-es v=10.5
include:
- env: DB=mariadb:10.2
- env: DB=mariadb:10.3
- env: DB=mariadb:10.4
- env: DB=mariadb:10.5
- env: DB=mariadb:10.5 NO_BACKSLASH_ESCAPES=true
- env: DB=mariadb:10.5 BENCHMARK=1
- env: DB=mariadb:10.5 MAXSCALE_VERSION=2.5.3 SSLPORT=4009
- env: DB=build
- env: DB=mysql:5.6
- env: DB=mysql:5.7
- env: DB=mysql:8.0 ADDITIONAL_CONF=--default-authentication-plugin=mysql_native_password --caching_sha2_password_private_key_path=/etc/sslcert/server.key --caching_sha2_password_public_key_path=/etc/sslcert/public.key --sha256_password_public_key_path=/etc/sslcert/public.key --sha256_password_private_key_path=/etc/sslcert/server.key
- env: srv=mariadb v=10.5
os: windows
language: shell
- env: srv=mariadb v=10.2
- env: srv=mariadb v=10.3
- env: srv=mariadb v=10.4
- env: srv=mariadb v=10.5
- env: srv=mariadb v=10.5 NO_BACKSLASH_ESCAPES=true
- env: srv=mariadb v=10.5 BENCH=1
- env: srv=maxscale
- env: srv=skysql
- env: srv=skysql-ha
- env: srv=build v=10.6
- env: srv=mysql v=5.7
- env: srv=mysql v=8.0

script:
- if [ "$DB" = "build" ] ; then .travis/build/build.sh; fi
- if [ "$DB" = "build" ] ; then docker build -t build:latest --label build .travis/build/; fi
- .travis/script.sh
- 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 -XX:MaxPermSize=512m" mvn test -DjobId=${TRAVIS_JOB_ID}; fi


after_success:
- bash <(curl -s https://codecov.io/bash)
99 changes: 0 additions & 99 deletions .travis/build/Dockerfile

This file was deleted.

33 changes: 0 additions & 33 deletions .travis/build/build.sh

This file was deleted.

Loading

0 comments on commit d8dcd72

Please sign in to comment.