]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Travis CI
authorTimePath <andrew.hardaker1995@gmail.com>
Fri, 19 Feb 2016 05:49:02 +0000 (16:49 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Fri, 19 Feb 2016 05:49:02 +0000 (16:49 +1100)
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..d1f0e1d
--- /dev/null
@@ -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