mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 07:31:21 +02:00
Merge branch 'develop' of github-softcoder-megaglest:MegaGlest/megaglest-source into develop
This commit is contained in:
63
.travis.yml
63
.travis.yml
@@ -1,16 +1,42 @@
|
|||||||
# http://docs.travis-ci.com/user/build-configuration/
|
# https://docs.travis-ci.com/user/customizing-the-build/
|
||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
|
sudo: required
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
|
||||||
|
env:
|
||||||
|
- GCC_VERSION="5"
|
||||||
|
- GCC_VERSION="native"
|
||||||
|
- LLVM_VERSION="3.7"
|
||||||
|
- LLVM_VERSION="native"
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
#include:
|
exclude:
|
||||||
# - compiler: gcc
|
- compiler: gcc
|
||||||
# - compiler: clang
|
env: LLVM_VERSION="3.7"
|
||||||
allow_failures:
|
- compiler: gcc
|
||||||
|
env: LLVM_VERSION="native"
|
||||||
- compiler: clang
|
- compiler: clang
|
||||||
|
env: GCC_VERSION="5"
|
||||||
|
- compiler: clang
|
||||||
|
env: GCC_VERSION="native"
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
env: LLVM_VERSION="native" # broken compiler
|
||||||
|
- os: osx
|
||||||
|
compiler: gcc # unsupported compiler
|
||||||
|
- os: osx
|
||||||
|
compiler: clang
|
||||||
|
env: LLVM_VERSION="3.7" # missing compiler by brew
|
||||||
|
#allow_failures:
|
||||||
|
# - os: osx
|
||||||
|
|
||||||
git:
|
git:
|
||||||
submodules: false
|
submodules: false
|
||||||
@@ -20,15 +46,30 @@ git:
|
|||||||
# - master
|
# - master
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -qq # UPDATE REPOS
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$GCC_VERSION" != "native" ]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test; fi
|
||||||
#- sudo apt-get upgrade -qq # UPGRADE SYSTEM TO LATEST PATCH LEVEL
|
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
|
||||||
- sudo apt-get install -y -qq
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then sudo add-apt-repository --yes 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main'; fi
|
||||||
- sudo ./.travis-before_install.sh
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then sudo add-apt-repository --yes "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-${LLVM_VERSION} main"; fi
|
||||||
- sudo mk/linux/setupBuildDeps.sh --quiet # INSTALL OUR DEPENDENCIES
|
# http://llvm.org/apt/
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi # UPDATE REPOS
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
|
||||||
|
#- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get upgrade -qq; fi # UPGRADE SYSTEM TO LATEST PATCH LEVEL
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y -qq; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" = "g++" ] && [ "$GCC_VERSION" != "native" ]; then sudo apt-get install -qq gcc-${GCC_VERSION} g++-${GCC_VERSION}; fi
|
||||||
|
- if [ "$CXX" = "g++" ] && [ "$GCC_VERSION" != "native" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then sudo apt-get --allow-unauthenticated -qq install clang-${LLVM_VERSION}; fi
|
||||||
|
- if [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then export CXX="clang++-${LLVM_VERSION}" CC="clang-${LLVM_VERSION}"; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo mk/linux/setupBuildDeps.sh --quiet; fi # INSTALL OUR DEPENDENCIES
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl2 lua freetype ftgl libogg glew libvorbis cppunit glib fribidi miniupnpc wxmac; fi
|
||||||
|
- $CXX --version
|
||||||
|
- cmake --version
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ./.travis-before_install.sh; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# ALL THE BUILD COMMANDS HERE
|
# ALL THE BUILD COMMANDS HERE
|
||||||
- mk/linux/build-mg.sh -c 4
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then mk/linux/build-mg.sh -c 4; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then mk/macosx/build-mg.sh -c 4; fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
|
28
mk/linux/git_update.sh
Executable file
28
mk/linux/git_update.sh
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
LANG=en_US.utf-8
|
||||||
|
|
||||||
|
cd "$(dirname $(readlink -f $0))"
|
||||||
|
|
||||||
|
echo STAGE 1/3 - GIT PULL
|
||||||
|
echo
|
||||||
|
echo Entering ../..
|
||||||
|
git pull
|
||||||
|
echo
|
||||||
|
git submodule foreach 'git pull; echo'
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
echo STAGE 2/3 - GIT BRANCH
|
||||||
|
echo
|
||||||
|
echo Entering ../..
|
||||||
|
git branch
|
||||||
|
echo
|
||||||
|
git submodule foreach 'git branch; echo'
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo STAGE 3/3 - GIT STATUS
|
||||||
|
echo
|
||||||
|
echo Entering ../..
|
||||||
|
git status
|
||||||
|
echo
|
||||||
|
git submodule foreach 'git status; echo'
|
@@ -12,7 +12,7 @@ usage() {
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
||||||
pull )
|
pull|status|branch )
|
||||||
echo '==> Running "git '"$1"'" on main repository...'
|
echo '==> Running "git '"$1"'" on main repository...'
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
git $1
|
git $1
|
||||||
|
@@ -32,7 +32,7 @@ namespace Glest{ namespace Game{
|
|||||||
// class NetworkInterface
|
// class NetworkInterface
|
||||||
// =====================================================
|
// =====================================================
|
||||||
|
|
||||||
const int NetworkInterface::readyWaitTimeout= 180000; // 3 minutes
|
const int NetworkInterface::readyWaitTimeout= 99000; // 99 seconds to 0 looks good on the screen
|
||||||
|
|
||||||
bool NetworkInterface::allowGameDataSynchCheck = false;
|
bool NetworkInterface::allowGameDataSynchCheck = false;
|
||||||
bool NetworkInterface::allowDownloadDataSynch = false;
|
bool NetworkInterface::allowDownloadDataSynch = false;
|
||||||
|
Reference in New Issue
Block a user