summaryrefslogtreecommitdiffstats
path: root/libmariadb/.travis.yml
blob: 48d14ccc40843248adb1449613df56142535070f (plain)
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
68
69
70
71
72
73
74
os: linux
dist: focal
language: c
services: docker
addons:
  hosts:
    - mariadb.example.com

cache:
  apt: true
  ccache: true
  directories:
    - $HOME/docker

before_install:
  - git clone https://github.com/mariadb-corporation/connector-test-machine.git
  # 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:
  - |-
    if [ -z "$server_branch" ] ; then
      case $TRAVIS_OS_NAME in
        windows)
          connector-test-machine/launch.bat -t "$srv" -v "$v" -d testc
          ;;
        linux)
          source connector-test-machine/launch.sh -t "$srv" -v "$v" -d testc -l "$local" -n "$native"
          ;;
      esac
    fi


env: local=0

jobs:
  fast_finish: true
  allow_failures:
    - env: srv=build v=10.6
    - env: srv=mariadb v=10.5
      os: windows
      language: shell
  include:
    - env: srv=mariadb v=10.5
      os: windows
      language: shell
    - env: srv=mariadb v=10.2 local=1
      dist: bionic
    - env: srv=mariadb v=10.3 local=1
    - env: srv=mariadb v=10.4 local=1
    - env: srv=mariadb v=10.5 local=1
    - env: srv=mariadb v=10.6 local=1
    - if: env(CONNECTOR_TEST_SECRET_KEY)
      env: srv=mariadb-es v=10.5
    - if: env(CONNECTOR_TEST_SECRET_KEY)
      env: srv=maxscale
    - if: env(CONNECTOR_TEST_SECRET_KEY)
      env: srv=build v=10.6
    - env: srv=mysql v=5.7 native=1
    - env: srv=mysql v=8.0 native=1
    - if: env(CONNECTOR_TEST_SECRET_KEY)
      env: srv=skysql
    - if: env(CONNECTOR_TEST_SECRET_KEY)
      env: srv=skysql-ha
    - env: server_branch=10.2
    - env: server_branch=10.2 TEST_OPTION=--ps-protocol
    - env: server_branch=10.3
    - env: server_branch=10.3 TEST_OPTION=--ps-protocol
    - env: server_branch=10.4
    - env: server_branch=10.4 TEST_OPTION=--ps-protocol
    - env: server_branch=10.5
    - env: server_branch=10.5 TEST_OPTION=--ps-protocol

script: ./travis.sh