X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=.travis.yml;h=830f373cebfae37fa14ed957173b775db810b39d;hp=fdadff812ea327e532810a6279ccae7af2565ffe;hb=6938567c6cc44cd8e526278f75de3e3b1863133f;hpb=d1def27dbb06344242a7e4ee4ee870a089560abb diff --git a/.travis.yml b/.travis.yml index fdadff8..830f373 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,31 @@ -language: c +language: cpp + compiler: - gcc - clang -# Change this to your needs -script: make && make check + +before_install: + # g++4.8.1 + - if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi + # clang 3.4 + - if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi + - sudo apt-get update -qq + +install: + # g++4.8.1 + - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi + - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi + # clang 3.4 + - if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi + - if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi + +script: + - make test + notifications: irc: channels: - - "irc.freenode.org#kf-engine" + - "irc.freenode.org#gmqcc" template: - "[%{commit} : %{author}] %{message}" - "%{build_url}"