From: TimePath Date: Fri, 19 Feb 2016 05:49:02 +0000 (+1100) Subject: Travis CI X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f3de61ca779d49ac9fbd91e385a5ba7851dfa1d5;p=xonotic%2Fnetradiant.git Travis CI --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..d1f0e1db --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +language: c++ + +sudo: required + +services: + - docker + +os: + - linux + - osx + +compiler: + - clang + - gcc + +before_script: + - cmake --version + - if [ "$TRAVIS_OS_NAME" == "linux" ]; then + sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" && + sudo apt-get -qq update && + sudo apt-get -qq -f install && + sudo apt-get -qq install libgtk2.0-dev libgtkglext1-dev; + fi + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then + brew update && + brew install gtkglext && + brew link --force gettext; + fi + +script: + - mkdir build && cd build + - cmake .. + - cmake --build . --target radiant -- -j4