MegaGlest/.travis.yml

87 lines
3.4 KiB
YAML
Raw Normal View History

2015-12-27 12:16:15 +01:00
# https://docs.travis-ci.com/user/customizing-the-build/
language: cpp
2015-12-27 12:38:46 +01:00
sudo: required
2015-12-27 13:57:01 +01:00
os:
- linux
- osx
compiler:
- gcc
- clang
2015-12-27 12:16:15 +01:00
env:
2015-12-27 13:57:01 +01:00
- GCC_VERSION="5"
- GCC_VERSION="native"
- LLVM_VERSION="3.7"
- LLVM_VERSION="native"
2015-12-27 12:16:15 +01:00
matrix:
2015-12-27 13:57:01 +01:00
exclude:
- compiler: gcc
env: LLVM_VERSION="3.7"
- compiler: gcc
env: LLVM_VERSION="native"
- compiler: clang
env: GCC_VERSION="5"
- compiler: clang
env: GCC_VERSION="native"
2015-12-27 14:40:31 +01:00
- os: linux
compiler: clang
2015-12-27 13:57:01 +01:00
env: LLVM_VERSION="native" # broken compiler
- os: osx
2015-12-27 16:19:01 +01:00
compiler: gcc # unsupported compiler
2015-12-27 13:57:01 +01:00
- os: osx
2015-12-27 14:40:31 +01:00
compiler: clang
2015-12-27 16:19:01 +01:00
env: LLVM_VERSION="3.7" # missing compiler by brew
#allow_failures:
# - os: osx
git:
submodules: false
2014-01-24 18:47:27 +01:00
#branches:
# only:
# - master
before_install:
2015-12-27 14:40:31 +01:00
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$GCC_VERSION" != "native" ]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test; fi
2015-12-27 12:16:15 +01:00
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
2015-12-27 14:40:31 +01:00
- 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
- 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
2015-12-27 12:16:15 +01:00
# http://llvm.org/apt/
2015-12-27 14:40:31 +01:00
- 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
2015-12-27 12:16:15 +01:00
- if [ "$CXX" = "g++" ] && [ "$GCC_VERSION" != "native" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
2015-12-27 14:40:31 +01:00
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then sudo apt-get --allow-unauthenticated -qq install clang-${LLVM_VERSION}; fi
2015-12-27 12:16:15 +01:00
- if [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then export CXX="clang++-${LLVM_VERSION}" CC="clang-${LLVM_VERSION}"; fi
2015-12-27 14:40:31 +01:00
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo mk/linux/setupBuildDeps.sh --quiet; fi # INSTALL OUR DEPENDENCIES
2015-12-27 16:19:01 +01:00
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl2 lua freetype ftgl libogg glew libvorbis cppunit glib fribidi miniupnpc wxmac; fi
2015-12-27 12:16:15 +01:00
- $CXX --version
2015-12-27 15:52:39 +01:00
- cmake --version
2015-12-27 14:40:31 +01:00
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ./.travis-before_install.sh; fi
script:
# ALL THE BUILD COMMANDS HERE
2015-12-27 14:40:31 +01:00
- 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:
irc:
channels:
- "irc.freenode.org#megaglest"
skip_join: true
2014-01-24 18:47:27 +01:00
use_notice: true
2015-11-10 22:15:36 +01:00
on_success: change
2014-01-24 18:47:27 +01:00
template:
#- "[%{commit}: %{author}] %{message}"
#- "%{build_url}"
- "[%{repository}#%{branch} @%{commit}] %{author}): %{message}"
- "Diff: %{compare_url}"
- "Build: %{build_url}"