diff options
Diffstat (limited to 'apps/ci')
-rwxr-xr-x | apps/ci/mac/ci-compile.sh | 29 | ||||
-rwxr-xr-x | apps/ci/mac/ci-install.sh | 4 |
2 files changed, 33 insertions, 0 deletions
diff --git a/apps/ci/mac/ci-compile.sh b/apps/ci/mac/ci-compile.sh new file mode 100755 index 0000000000..fc0a008b5a --- /dev/null +++ b/apps/ci/mac/ci-compile.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +export CCACHE_CPP2=true +export CCACHE_MAXSIZE='500MB' +ccache -s + +mkdir var/build/obj && cd var/build/obj; + +time cmake ../../../ \ +-DTOOLS=1 \ +-DUNIT_TESTS=1 \ +-DSCRIPTS=1 \ +-DCMAKE_BUILD_TYPE=Debug \ +-DMYSQL_ADD_INCLUDE_PATH=/usr/local/include \ +-DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib \ +-DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include \ +-DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib \ +-DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include \ +-DOPENSSL_SSL_LIBRARIES=/usr/local/opt/openssl/lib/libssl.dylib \ +-DOPENSSL_CRYPTO_LIBRARIES=/usr/local/opt/openssl/lib/libcrypto.dylib \ +-DCMAKE_C_FLAGS="-Werror" \ +-DCMAKE_CXX_FLAGS="-Werror" \ +-DCMAKE_C_COMPILER_LAUNCHER=ccache \ +-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ +; + +time make -j $(($(sysctl -n hw.ncpu ) + 2)) + +ccache -s diff --git a/apps/ci/mac/ci-install.sh b/apps/ci/mac/ci-install.sh new file mode 100755 index 0000000000..8b1d20aa87 --- /dev/null +++ b/apps/ci/mac/ci-install.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +time brew update +time brew install openssl readline ace coreutils bash bash-completion mysql ccache |