mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Implement OSX Travis builds
This commit is contained in:
parent
99c905c563
commit
c4e0d95c87
3 changed files with 37 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
if [[ $PLATFORM == "Linux" ]]; then
|
||||
if [[ $PLATFORM == "Unix" ]]; then
|
||||
mkdir -p travisbuild
|
||||
cd travisbuild
|
||||
CMAKE_FLAGS='-DCMAKE_BUILD_TYPE=Debug \
|
||||
|
@ -10,6 +10,9 @@ if [[ $PLATFORM == "Linux" ]]; then
|
|||
if [[ $CC == "clang" ]]; then
|
||||
CMAKE_FLAGS+=' -DENABLE_FREETYPE=FALSE'
|
||||
fi
|
||||
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
|
||||
CMAKE_FLAGS+=' -DCUSTOM_GETTEXT_PATH=/usr/local/opt/gettext'
|
||||
fi
|
||||
cmake $CMAKE_FLAGS ..
|
||||
make -j2
|
||||
echo "Running unit tests."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue