3 set_linux_compiler_env() {
4 if [[ "${COMPILER}" == "gcc-5.1" ]]; then
7 elif [[ "${COMPILER}" == "gcc-6" ]]; then
10 elif [[ "${COMPILER}" == "gcc-7" ]]; then
13 elif [[ "${COMPILER}" == "clang-3.6" ]]; then
15 export CXX=clang++-3.6
16 elif [[ "${COMPILER}" == "clang-5.0" ]]; then
18 export CXX=clang++-5.0
23 install_linux_deps() {
25 sudo apt-get install libirrlicht-dev cmake libbz2-dev libpng12-dev \
26 libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev \
27 libhiredis-dev libogg-dev libgmp-dev libvorbis-dev libopenal-dev \
28 gettext libpq-dev libleveldb-dev
32 install_macosx_deps() {
34 brew install freetype gettext hiredis irrlicht leveldb libogg libvorbis luajit
35 if brew ls | grep -q jpeg; then
40 #brew upgrade postgresql
43 # Relative to git-repository root:
44 TRIGGER_COMPILE_PATHS="src/.*\.(c|cpp|h)|CMakeLists.txt|cmake/Modules/|util/travis/|util/buildbot/"
47 RANGE="$TRAVIS_COMMIT_RANGE"
48 if [[ "$(git diff --name-only $RANGE -- 2>/dev/null)" == "" ]]; then
49 RANGE="$TRAVIS_COMMIT^...$TRAVIS_COMMIT"
50 echo "Fixed range: $RANGE"
52 git diff --name-only $RANGE -- | egrep -q "^($TRIGGER_COMPILE_PATHS)"