MegaGlest/.travis.yml

64 lines
2.3 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
compiler:
- gcc
- clang
2015-12-27 12:16:15 +01:00
env:
2015-12-27 12:38:46 +01:00
- GCC_VERSION="5" LLVM_VERSION="3.7"
- GCC_VERSION="native" LLVM_VERSION="native"
2015-12-27 12:16:15 +01:00
matrix:
#include:
# - compiler: gcc
# - compiler: clang
allow_failures:
- compiler: clang
2015-12-27 12:16:15 +01:00
#- env: LLVM_VERSION=3.5
git:
submodules: false
2014-01-24 18:47:27 +01:00
#branches:
# only:
# - master
before_install:
2015-12-27 12:16:15 +01:00
- if [ "$GCC_VERSION" != "native" ]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test; fi
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
- if [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then sudo add-apt-repository --yes 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main'; fi
2015-12-27 12:58:34 +01:00
- if [ "$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/
- if [ "$CXX" == "clang++" ] && [ "$LLVM_VERSION" != "native" ]; then wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -; fi
2014-01-24 18:47:27 +01:00
- sudo apt-get update -qq # UPDATE REPOS
#- sudo apt-get upgrade -qq # UPGRADE SYSTEM TO LATEST PATCH LEVEL
- sudo apt-get install -y -qq
2015-12-27 12:16:15 +01:00
- if [ "$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
2015-12-27 12:38:46 +01:00
- if [ "$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
- sudo mk/linux/setupBuildDeps.sh --quiet # INSTALL OUR DEPENDENCIES
2015-12-27 12:16:15 +01:00
- $CXX --version
2015-12-27 00:46:08 +01:00
- sudo ./.travis-before_install.sh
script:
# ALL THE BUILD COMMANDS HERE
2014-01-24 18:47:27 +01:00
- mk/linux/build-mg.sh -c 4
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}"