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-4.0" ]]; then
18 export CXX=clang++-4.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 jpeg leveldb libogg libvorbis luajit
35 #brew upgrade postgresql
38 # Relative to git-repository root:
39 TRIGGER_COMPILE_PATHS="src/.*\.(c|cpp|h)|CMakeLists.txt|cmake/Modules/|util/travis/|util/buildbot/"
42 git diff --name-only $TRAVIS_COMMIT_RANGE | egrep -q "^($TRIGGER_COMPILE_PATHS)"