Skip to content

Commit e3207bb

Browse files
committed
2 parents 4f88242 + 107d737 commit e3207bb

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.travis.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,30 @@ before_install:
1111
- git clone https://github.com/mariadb-corporation/connector-test-machine.git
1212

1313
install:
14+
- source connector-test-machine/launch.sh -t "$srv" -v "$v" -d testp -l "$local"
1415
- export MAIN_PATH=`pwd`
1516
# install pyenv to test multiple python version
1617
- git clone https://github.com/pyenv/pyenv.git ~/.pyenv
1718
- export PYENV_ROOT="$HOME/.pyenv"
1819
- eval "$(pyenv init -)"
1920
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
2021
# 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
2630
- mkdir bld
2731
- 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
2938
- make -j4
3039
- sudo make install
3140
- export MARIADB_PLUGIN_DIR==`mariadb_config --plugindir`
@@ -39,12 +48,12 @@ install:
3948
- pyenv versions
4049
# install server
4150
- cd $MAIN_PATH
42-
- source connector-test-machine/launch.sh -t "$srv" -v "$v" -d testp -l "$local"
4351

4452
env:
4553
global:
4654
- PYTHON_VER="3.10"
47-
55+
- HOMEBREW_NO_AUTO_UPDATE=1
56+
- HOMEBREW_NO_INSTALL_CLEANUP=1
4857

4958
jobs:
5059
fast_finish: true
@@ -77,6 +86,10 @@ jobs:
7786
env: srv=mysql v=5.7
7887
- if: type = push AND fork = false
7988
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
8093

8194
notifications:
8295
email: false

0 commit comments

Comments
 (0)