Skip to content

Commit 3bfb0b3

Browse files
grooverdansvoj
authored andcommitted
Travis: Add OSX to tests (but allow failure)
1 parent 46e2442 commit 3bfb0b3

File tree

1 file changed

+38
-10
lines changed

1 file changed

+38
-10
lines changed

.travis.yml

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,52 @@
44
sudo: false
55
dist: trusty
66

7+
git:
8+
depth: 2
9+
710
language: cpp
811
os:
912
- linux
1013
compiler:
1114
- gcc
1215
- clang
16+
1317
cache:
14-
- apt
15-
- ccache
18+
apt: true
19+
ccache: true
20+
directories:
21+
- /usr/local
1622

1723
env:
1824
matrix:
1925
- GCC_VERSION=4.8
2026
- GCC_VERSION=5
2127
- GCC_VERSION=6
2228

23-
#matrix:
24-
# include:
29+
matrix:
30+
allowed_failures:
31+
- os: osx
32+
include:
33+
- os: osx
34+
before_install:
35+
- brew update
36+
- brew install homebrew/boneyard/judy gnutls lz4 lzo xz snappy ccache
37+
# Below fixed by: https://github.com/MariaDB/server/pull/347
38+
- sed -i -e 's:/usr/bin/::g' cmake/libutils.cmake
39+
script:
40+
- ccache --version
41+
- cmake .
42+
-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl
43+
-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache
44+
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache
45+
-DCMAKE_BUILD_TYPE=Debug
46+
-DWITH_SSL=system -DWITH_ZLIB=system
47+
-DWITHOUT_TOKUDB_STORAGE_ENGINE=ON -DWITHOUT_MROONGA_STORAGE_ENGINE=ON
48+
- make -j 4
49+
- cd mysql-test
50+
- ./mtr --force --parallel=4 --skip-rpl --suite=main,innodb --skip-test-list=unstable-tests
51+
- ccache --show-stats
52+
2553
# - env:
2654
# - GCC_VERSION=6
2755
# addon:
@@ -39,20 +67,20 @@ env:
3967
# build_command_prepend:
4068
# - source .travis.compiler.sh
4169
# - ${MYSQL_BUILD_CC} --version ; ${MYSQL_BUILD_CXX} --version
42-
# - cmake . {MYSQL_BUILD_CXX:+-DCMAKE_CXX_COMPILER=$${MYSQL_BUILD_CXX} \
43-
# {MYSQL_BUILD_CC:+-DCMAKE_C_COMPILER=$${MYSQL_BUILD_CC} \
44-
# -DCMAKE_BUILD_TYPE=Debug \
45-
# -DWITH_SSL=system -DWITH_ZLIB=system \
70+
# - cmake . {MYSQL_BUILD_CXX:+-DCMAKE_CXX_COMPILER=$${MYSQL_BUILD_CXX}
71+
# {MYSQL_BUILD_CC:+-DCMAKE_C_COMPILER=$${MYSQL_BUILD_CC}
72+
# -DCMAKE_BUILD_TYPE=Debug
73+
# -DWITH_SSL=system -DWITH_ZLIB=system
4674
# -DWITHOUT_TOKUDB_STORAGE_ENGINE=ON -DWITHOUT_MROONGA_STORAGE_ENGINE=ON
47-
#
75+
#
4876
# # The command that will be added as an argument to "cov-build" to compile your project for analysis,
4977
# build_command: make -j 4
5078
#
5179
# # Pattern to match selecting branches that will run analysis.
5280
# # Take care in resource usage, and consider the build frequency allowances per
5381
# # https://scan.coverity.com/faq#frequency - 7 per week is the current limit.
5482
# branch_pattern: .*coverity.*
55-
#
83+
5684
addons:
5785
apt:
5886
sources:

0 commit comments

Comments
 (0)