mirror of
https://github.com/mariadb-corporation/mariadb-connector-cpp.git
synced 2025-07-25 01:27:57 +00:00
Copied travis.yml from 1.1
Fixed warning in LoggerFactory
This commit is contained in:
99
.travis.yml
99
.travis.yml
@ -1,118 +1,35 @@
|
|||||||
os: linux
|
|
||||||
dist: jammy
|
|
||||||
sudo: true
|
|
||||||
language: c
|
language: c
|
||||||
services: docker
|
version: ~> 1.0
|
||||||
addons:
|
sudo: true
|
||||||
hosts:
|
|
||||||
- mariadb.example.com
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
apt: true
|
apt: true
|
||||||
ccache: true
|
ccache: true
|
||||||
directories:
|
|
||||||
- $HOME/docker
|
|
||||||
|
|
||||||
before_install:
|
env:
|
||||||
- git clone https://github.com/mariadb-corporation/connector-test-machine.git
|
global: local=0 PROFILE=default DB=testcpp CLEAR_TEXT=0
|
||||||
# Load cached docker images
|
|
||||||
- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
|
|
||||||
|
|
||||||
install:
|
import: mariadb-corporation/connector-test-machine:common-build.yml@master
|
||||||
- |-
|
|
||||||
if [ -z "$server_branch" ] ; then
|
|
||||||
case $TRAVIS_OS_NAME in
|
|
||||||
windows)
|
|
||||||
connector-test-machine/launch.bat -t "$srv" -v "$v" -d testcpp
|
|
||||||
;;
|
|
||||||
linux)
|
|
||||||
source connector-test-machine/launch.sh -t "$srv" -v "$v" -d testcpp -l "$local" -n "$native"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
env: local=0
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- Minimal
|
|
||||||
- name: Enterprise
|
|
||||||
if: type = push AND fork = false
|
|
||||||
- Community
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fast_finish: true
|
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: srv=build
|
- env: srv=build
|
||||||
- env: srv=xpand
|
|
||||||
- env: srv=mysql v=5.7
|
|
||||||
- env: srv=mysql v=8.0
|
|
||||||
- env: srv=mariadb v=10.6
|
|
||||||
os: windows
|
|
||||||
- os: osx
|
- os: osx
|
||||||
- os: linux
|
- os: linux
|
||||||
arch: s390x
|
arch: s390x
|
||||||
dist: focal
|
dist: focal
|
||||||
- env: srv=maxscale MAXSCALE_TEST_DISABLE=true
|
|
||||||
- env: srv=xpand
|
|
||||||
# - env: srv=skysql SKYSQL=true
|
|
||||||
# - env: srv=skysql-ha SKYSQL_HA=true MAXSCALE_TEST_DISABLE=true
|
|
||||||
include:
|
include:
|
||||||
- stage: Minimal
|
|
||||||
env: srv=mariadb v=10.6 local=1
|
|
||||||
name: "CS 10.6"
|
|
||||||
- env: srv=mariadb-es v=10.6
|
|
||||||
name: "ES 10.6"
|
|
||||||
if: type = push AND fork = false
|
|
||||||
|
|
||||||
- stage: Enterprise
|
|
||||||
env: srv=mariadb-es v=10.4
|
|
||||||
name: "ES 10.4"
|
|
||||||
- env: srv=mariadb-es v=10.5
|
|
||||||
name: "ES 10.5"
|
|
||||||
# - env: srv=mariadb v=10.6 local=1 BENCH=true
|
|
||||||
#name: "benchmark"
|
|
||||||
- env: srv=mariadb-es-test v=23.08
|
|
||||||
name: "ES 23.08"
|
|
||||||
if: type = push AND fork = false
|
|
||||||
- env: srv=maxscale MAXSCALE_TEST_DISABLE=true
|
|
||||||
name: "Maxscale"
|
|
||||||
# - env: srv=skysql SKYSQL=true
|
|
||||||
# name: "SkySQL"
|
|
||||||
# - env: srv=skysql-ha SKYSQL_HA=true MAXSCALE_TEST_DISABLE=true
|
|
||||||
# name: "SkySQL with replication"
|
|
||||||
- env: srv=xpand
|
|
||||||
name: "Xpand"
|
|
||||||
|
|
||||||
- stage: Community
|
- stage: Community
|
||||||
env: srv=mariadb v=10.4
|
os: osx
|
||||||
os: windows
|
|
||||||
language: shell
|
|
||||||
name: "CS 10.4 - Windows"
|
|
||||||
- env: srv=mariadb v=10.11 local=1
|
|
||||||
name: "CS 10.11"
|
|
||||||
- env: srv=mariadb v=10.5 local=1
|
|
||||||
name: "CS 10.5"
|
|
||||||
- env: srv=mariadb v=11.0 local=1
|
|
||||||
name: "CS 11.0"
|
|
||||||
- env: srv=mariadb v=11.1 local=1
|
|
||||||
name: "CS 11.1"
|
|
||||||
- env: srv=mariadb v=11.2 local=1
|
|
||||||
name: "CS 11.2"
|
|
||||||
- env: srv=mysql v=5.7
|
|
||||||
name: "MySQL 5.7"
|
|
||||||
- env: srv=mysql v=8.0
|
|
||||||
name: "MySQL 8.0"
|
|
||||||
- env: srv=build
|
|
||||||
name: "CS build"
|
|
||||||
- os: osx
|
|
||||||
compiler: clang
|
compiler: clang
|
||||||
before_script:
|
before_script:
|
||||||
- brew install openssl
|
- brew install openssl
|
||||||
- brew install libiodbc
|
- brew install libiodbc
|
||||||
|
name: "osx"
|
||||||
- os: linux
|
- os: linux
|
||||||
arch: s390x
|
arch: s390x
|
||||||
dist: focal
|
dist: focal
|
||||||
env: srv=mariadb v=10.11 local=1
|
env: srv=mariadb v=10.11 local=1
|
||||||
|
name: "s390x"
|
||||||
|
|
||||||
script: ./travis.sh
|
script: ./travis.sh
|
||||||
|
@ -25,7 +25,7 @@ namespace sql
|
|||||||
{
|
{
|
||||||
namespace mariadb
|
namespace mariadb
|
||||||
{
|
{
|
||||||
Shared::Logger LoggerFactory::NO_LOGGER= (NO_LOGGER ? NO_LOGGER : Shared::Logger(new NoLogger()));
|
Shared::Logger LoggerFactory::NO_LOGGER;
|
||||||
bool LoggerFactory::hasToLog= false;
|
bool LoggerFactory::hasToLog= false;
|
||||||
|
|
||||||
void LoggerFactory::init(bool mustLog)
|
void LoggerFactory::init(bool mustLog)
|
||||||
|
Reference in New Issue
Block a user