equal
deleted
inserted
replaced
50 env: TRAVIS_OS_NAME="ios" SDL_LIB_PATH="$TRAVIS_BUILD_DIR/../Library" |
50 env: TRAVIS_OS_NAME="ios" SDL_LIB_PATH="$TRAVIS_BUILD_DIR/../Library" |
51 osx_image: xcode7.2 |
51 osx_image: xcode7.2 |
52 |
52 |
53 before_install: | |
53 before_install: | |
54 if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
54 if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
|
55 sudo add-apt-repository ppa:costamagnagianfranco/hedgewars-nightly -y |
55 sudo apt-get update -qq |
56 sudo apt-get update -qq |
56 elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
57 elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
57 brew update |
58 brew update |
58 elif [ "$TRAVIS_OS_NAME" == "ios" ]; then |
59 elif [ "$TRAVIS_OS_NAME" == "ios" ]; then |
59 hg clone http://hg.libsdl.org/SDL $SDL_LIB_PATH/SDL/ |
60 hg clone http://hg.libsdl.org/SDL $SDL_LIB_PATH/SDL/ |
63 hg clone http://hg.libsdl.org/SDL_mixer $SDL_LIB_PATH/SDL_mixer/ |
64 hg clone http://hg.libsdl.org/SDL_mixer $SDL_LIB_PATH/SDL_mixer/ |
64 fi |
65 fi |
65 |
66 |
66 install: | |
67 install: | |
67 if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
68 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 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 sudo apt-get install -y cmake debhelper dpkg-dev fp-compiler fp-units-gfx fp-units-misc ghc libavcodec-dev libavformat-dev libghc-aeson-dev libghc-entropy-dev libghc-hslogger-dev libghc-mtl-dev libghc-network-dev libghc-parsec3-dev libghc-random-dev libghc-regex-tdfa-dev libghc-sandi-dev libghc-sha-dev libghc-text-dev libghc-utf8-string-dev libghc-vector-dev libghc-yaml-dev libghc-zlib-dev liblua5.1-dev libphysfs-dev libpng-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev qtbase5-dev qtbase5-private-dev qttools5-dev qttools5-dev-tools |
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 |
|
80 elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
70 elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
81 brew install qt5 |
71 brew install qt5 |
82 brew install fpc glew physfs lua51 sdl2 sdl2_image sdl2_net sdl2_ttf ffmpeg ghc cabal-install |
72 brew install fpc glew physfs lua51 sdl2 sdl2_image sdl2_net sdl2_ttf ffmpeg ghc cabal-install |
83 brew install sdl2_mixer |
73 brew install sdl2_mixer |
84 # use cabal install haskell deps, pas2c ones are covered by server |
74 # use cabal install haskell deps, pas2c ones are covered by server |