mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 08:36:27 +00:00

This makes it simpler in the future to have branches that have dependencies that are different from master, rather than having a single image with all necessary dependencies installed, which may at some point end up not being possible to do. (cherry-picked from commit 1bb5fdf2830515d33793c52f298d305bd12b5a60)
35 lines
929 B
Bash
Executable File
35 lines
929 B
Bash
Executable File
#!/bin/bash
|
|
|
|
date
|
|
|
|
export EXTRA_FLAGS_RELEASE=""
|
|
export WML_TESTS=true
|
|
export PLAY_TEST=true
|
|
export MP_TEST=true
|
|
export WML_TEST_TIME=15
|
|
export BOOST_TEST=true
|
|
export LTO=false
|
|
|
|
if [ "$OPT" = "-O0" ]; then
|
|
export EXTRA_FLAGS_RELEASE="-O0"
|
|
export PLAY_TEST=false
|
|
export MP_TEST=false
|
|
export WML_TEST_TIME=20
|
|
else
|
|
# change to true to enable LTO on optimized, non-xcode builds
|
|
export LTO=false
|
|
fi
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
if [ "$TOOL" = "xcodebuild" ]; then
|
|
brew install ccache
|
|
travis_wait ./projectfiles/Xcode/Fix_Xcode_Dependencies
|
|
else
|
|
brew install scons cairo pango moreutils sdl2_image sdl2_ttf sdl2_mixer openssl
|
|
export CXXFLAGS="-I/usr/local/opt/openssl/include $CFLAGS"
|
|
export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
|
|
fi
|
|
else
|
|
docker build -t wesnoth-repo:"$LTS"-"$BRANCH" -f docker/Dockerfile-travis-"$LTS"-"$BRANCH" .
|
|
fi
|