@@ -11,21 +11,30 @@ before_install:
11
11
- git clone https://github.com/mariadb-corporation/connector-test-machine.git
12
12
13
13
install :
14
+ - source connector-test-machine/launch.sh -t "$srv" -v "$v" -d testp -l "$local"
14
15
- export MAIN_PATH=`pwd`
15
16
# install pyenv to test multiple python version
16
17
- git clone https://github.com/pyenv/pyenv.git ~/.pyenv
17
18
- export PYENV_ROOT="$HOME/.pyenv"
18
19
- eval "$(pyenv init -)"
19
20
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
20
21
# install c dependency
21
- - sudo apt-get install software-properties-common
22
- - sudo apt-get install -f libssl-dev libssl1.1
23
- - sudo apt-get install -f
24
- - git clone https://github.com/mariadb-corporation/mariadb-connector-c.git ~/.cc_3.1
25
- - cd ~/.cc_3.1
22
+ - |-
23
+ if [ "$TRAVIS_OS_NAME" != "osx" ] ; then
24
+ sudo apt-get install software-properties-common
25
+ sudo apt-get install -f libssl-dev libssl1.1
26
+ sudo apt-get install -f
27
+ fi
28
+ - git clone https://github.com/mariadb-corporation/mariadb-connector-c.git ~/.cc_3
29
+ - cd ~/.cc_3
26
30
- mkdir bld
27
31
- cd bld
28
- - cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
32
+ - |-
33
+ if [ "$TRAVIS_OS_NAME" = "osx" ] ; then
34
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_EXTERNAL_ZLIB:BOOL=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1
35
+ else
36
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
37
+ fi
29
38
- make -j4
30
39
- sudo make install
31
40
- export MARIADB_PLUGIN_DIR==`mariadb_config --plugindir`
@@ -39,12 +48,12 @@ install:
39
48
- pyenv versions
40
49
# install server
41
50
- cd $MAIN_PATH
42
- - source connector-test-machine/launch.sh -t "$srv" -v "$v" -d testp -l "$local"
43
51
44
52
env :
45
53
global :
46
54
- PYTHON_VER="3.10"
47
-
55
+ - HOMEBREW_NO_AUTO_UPDATE=1
56
+ - HOMEBREW_NO_INSTALL_CLEANUP=1
48
57
49
58
jobs :
50
59
fast_finish : true
77
86
env : srv=mysql v=5.7
78
87
- if : type = push AND fork = false
79
88
env : srv=mysql v=8.0
89
+ - env : srv=mariadb v=10.7 local=1 PYTHON_VER="3.10"
90
+ os : osx
91
+ osx_image : xcode13.3
92
+ compiler : gcc
80
93
81
94
notifications :
82
95
email : false
0 commit comments