.travis.yml
branchui-scaling
changeset 15304 c4fd2813b127
parent 14945 58070c3dd043
child 15478 f28016c508c0
equal deleted inserted replaced
13390:0135e64c6c66 15304:c4fd2813b127
    21 
    21 
    22 env:
    22 env:
    23   - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Release"
    23   - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Release"
    24   - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug"
    24   - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug"
    25   - BUILD_ARGS="-DNOSERVER=1 -DGL2=1 -DNOPNG=1"
    25   - BUILD_ARGS="-DNOSERVER=1 -DGL2=1 -DNOPNG=1"
    26   - BUILD_ARGS="-DNOSERVER=1 -DLUA_SYSTEM=0 -DPHYSFS_SYSTEM=0"
    26   - BUILD_ARGS="-DNOSERVER=1 -DLUA_SYSTEM=0"
    27 
    27 
    28 matrix:
    28 matrix:
    29   include:
    29   include:
    30   - language: c
    30   - language: c
    31     os: linux
    31     os: linux
    52 
    52 
    53 before_install: |
    53 before_install: |
    54   if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    54   if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    55     sudo apt-get update -qq
    55     sudo apt-get update -qq
    56   elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
    56   elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
    57     brew update --all
    57     brew update
    58   elif [ "$TRAVIS_OS_NAME" == "ios" ]; then
    58   elif [ "$TRAVIS_OS_NAME" == "ios" ]; then
    59     hg clone http://hg.libsdl.org/SDL $SDL_LIB_PATH/SDL/
    59     hg clone http://hg.libsdl.org/SDL $SDL_LIB_PATH/SDL/
    60     hg clone http://hg.libsdl.org/SDL_image $SDL_LIB_PATH/SDL_image/
    60     hg clone http://hg.libsdl.org/SDL_image $SDL_LIB_PATH/SDL_image/
    61     hg clone http://hg.libsdl.org/SDL_net $SDL_LIB_PATH/SDL_net/
    61     hg clone http://hg.libsdl.org/SDL_net $SDL_LIB_PATH/SDL_net/
    62     hg clone http://hg.libsdl.org/SDL_ttf $SDL_LIB_PATH/SDL_ttf/
    62     hg clone http://hg.libsdl.org/SDL_ttf $SDL_LIB_PATH/SDL_ttf/
    63     hg clone http://hg.libsdl.org/SDL_mixer $SDL_LIB_PATH/SDL_mixer/
    63     hg clone http://hg.libsdl.org/SDL_mixer $SDL_LIB_PATH/SDL_mixer/
    64   fi
    64   fi
    65 
    65 
    66 install: |
    66 install: |
    67   if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    67   if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    68     sudo apt-get install -y debhelper cmake dpkg-dev qtbase5-dev qtbase5-private-dev qttools5-dev-tools qttools5-dev libphysfs-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-net-dev bzip2 ghc libghc-mtl-dev libghc-vector-dev libghc-zlib-dev libghc-random-dev libghc-network-dev libghc-sandi-dev libghc-hslogger-dev libghc-utf8-string-dev libghc-sha-dev libghc-entropy-dev libghc-regex-tdfa-dev liblua5.1-0-dev fpc fp-compiler fp-units-misc libpng-dev fp-units-gfx libavcodec-dev libavformat-dev libglew1.6-dev
    68     sudo apt-get install -y debhelper cmake dpkg-dev qtbase5-dev qtbase5-private-dev qttools5-dev-tools qttools5-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-net-dev bzip2 ghc libghc-mtl-dev libghc-vector-dev libghc-zlib-dev libghc-random-dev libghc-network-dev libghc-sandi-dev libghc-hslogger-dev libghc-utf8-string-dev libghc-sha-dev libghc-entropy-dev libghc-regex-tdfa-dev libghc-aeson-dev libghc-yaml-dev libghc-text-dev liblua5.1-0-dev fpc fp-compiler fp-units-misc libpng-dev fp-units-gfx libavcodec-dev libavformat-dev libglew1.6-dev
       
    69 
       
    70     # for xenial last availible version of libphysfs is 2.0.x, but we need >= 3.0
       
    71     # so... building from sources!
       
    72     wget https://icculus.org/physfs/downloads/physfs-3.0.1.tar.bz2
       
    73     tar -xjf physfs-3.0.1.tar.bz2
       
    74     mkdir physfs-3.0.1-build
       
    75     pushd physfs-3.0.1-build
       
    76     cmake ../physfs-3.0.1
       
    77     make
       
    78     sudo make install
       
    79     popd
    69   elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
    80   elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
    70     brew install qt5
    81     brew install qt5
    71     brew install fpc glew physfs lua51 sdl2 sdl2_image sdl2_net sdl2_ttf ffmpeg ghc cabal-install
    82     brew install fpc glew physfs lua51 sdl2 sdl2_image sdl2_net sdl2_ttf ffmpeg ghc cabal-install
    72     brew install sdl2_mixer --with-libvorbis
    83     brew install sdl2_mixer
    73     # use cabal install haskell deps, pas2c ones are covered by server
    84     # use cabal install haskell deps, pas2c ones are covered by server
    74     if [[ "$BUILD_ARGS" != *"NOSERVER"* ]]; then
    85     if [[ "$BUILD_ARGS" != *"NOSERVER"* ]]; then
    75       cabal update
    86       cabal update
    76       cabal install --only-dependencies gameServer/hedgewars-server.cabal
    87       cabal install --only-dependencies gameServer/hedgewars-server.cabal
    77     fi
    88     fi