.travis.yml
branchqmlfrontend
changeset 11453 42a9dd7b724c
parent 11415 1b9e183841e7
child 11509 df336149cc2b
equal deleted inserted replaced
11452:2572afe532af 11453:42a9dd7b724c
     1 language: c
     1 language: c
       
     2 os:
       
     3   - linux
       
     4   - osx
     2 branches:
     5 branches:
     3   except:
     6   only:
     4     gh-pages
     7     master
     5 compiler:
     8 compiler:
     6   - gcc
     9   - gcc
     7   - clang
    10   - clang
     8 env:
    11 env:
     9   - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Release"
    12   - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Release"
    10   - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug"
    13   - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug"
    11   - BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1"
    14   - BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1"
    12   - BUILD_ARGS="-DNOSERVER=1 -DNOVIDEOREC=1 -DNOPNG=1"
    15   - BUILD_ARGS="-DNOSERVER=1 -DNOVIDEOREC=1 -DNOPNG=1"
    13   - BUILD_ARGS="-DNOSERVER=1 -DLUA_SYSTEM=0 -DPHYSFS_SYSTEM=0"
    16   - BUILD_ARGS="-DNOSERVER=1 -DLUA_SYSTEM=0 -DPHYSFS_SYSTEM=0"
    14 matrix:
    17 before_install: |
    15   allow_failures:
    18   if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    16     # Failures we expect here
    19     sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
    17 before_install:
    20     sudo apt-get update -qq
    18   - sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
    21   elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
    19   - sudo apt-get update -qq
    22     brew update --all
    20   - sudo apt-get install debhelper cmake dpkg-dev libqt4-dev qt4-qmake libphysfs-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-net-dev bzip2 ghc libghc-mtl-dev libghc-parsec3-dev libghc-bytestring-show-dev libghc-vector-dev libghc-zlib-dev libghc-random-dev libghc-stm-dev libghc-network-dev libghc-dataenc-dev libghc-hslogger-dev libghc-utf8-string-dev libghc-sha-dev libghc-entropy-dev liblua5.1-0-dev imagemagick fpc fp-compiler fp-units-misc libpng-dev fp-units-gfx libavcodec-dev libavformat-dev libglew1.6-dev
    23   fi
    21 script: 
    24 install: |
    22   - mkdir build && cd build && cmake $BUILD_ARGS .. && make VERBOSE=1 && make test_verbose
    25   if [ "$TRAVIS_OS_NAME" == "linux" ]; then
       
    26     sudo apt-get install debhelper cmake dpkg-dev libqt4-dev qt4-qmake libphysfs-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-net-dev bzip2 ghc libghc-mtl-dev libghc-parsec3-dev libghc-bytestring-show-dev libghc-vector-dev libghc-zlib-dev libghc-random-dev libghc-stm-dev libghc-network-dev libghc-dataenc-dev libghc-hslogger-dev libghc-utf8-string-dev libghc-sha-dev libghc-entropy-dev liblua5.1-0-dev imagemagick fpc fp-compiler fp-units-misc libpng-dev fp-units-gfx libavcodec-dev libavformat-dev libglew1.6-dev
       
    27   elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
       
    28     brew install fpc glew qt physfs lua51 sdl2 sdl2_image sdl2_net sdl2_ttf ffmpeg ghc cabal-install
       
    29     brew install sdl2_mixer --with-vorbis
       
    30     # use cabal install haskell deps, pas2c ones are covered by server
       
    31     if [[ "$BUILD_ARGS" != *"NOSERVER"* ]]; then
       
    32       cabal update
       
    33       cabal install --only-dependencies gameServer/hedgewars-server.cabal
       
    34     fi
       
    35     if [[ "$BUILD_ARGS" == *"BUILD_ENGINE_C"* ]]; then
       
    36       cabal update
       
    37       cabal install --only-dependencies tools/pas2c/pas2c.cabal
       
    38     fi
       
    39     # avoid installing Sparkle, add default unit path
       
    40     export BUILD_ARGS="$BUILD_ARGS -DNOAUTOUPDATE=1 -DCMAKE_Pascal_FLAGS=-Fu/usr/local/lib/fpc/$(fpc -iW)/units/x86_64-darwin/*/"
       
    41   fi
       
    42 before_script:
       
    43   - mkdir build && cd build && cmake $BUILD_ARGS ..
       
    44 script:
       
    45   - make VERBOSE=1
       
    46 after_success: |
       
    47   if [ "$TRAVIS_OS_NAME" == "linux" ]; then
       
    48     make test_verbose
       
    49   elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
       
    50     make install
       
    51   fi
    23 notifications:
    52 notifications:
    24   email: false
    53   email: false
    25   irc:
    54   irc:
    26     channels:
    55     channels:
    27       - "chat.freenode.net#hedgewars"
    56       - "chat.freenode.net#hedgewars"
    28     template:
    57     template:
    29       - "hw-build #%{build_number} (%{commit} by %{author}): %{message}"
    58       - "hw-build #%{build_number} (%{commit} by %{author}): %{message}"
    30       - "See details at %{build_url}"
    59       - "See details at %{build_url}"
    31     on_success: change
    60     on_success: change
    32     on_failure: always
    61     on_failure: always
       
    62     skip_join: true