From 092559f4d32c730beca17f903b7da193ba38c873 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sat, 14 Jan 2017 12:06:06 +0100 Subject: [PATCH] Add travis.yml config --- .gitignore | 1 + .travis.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index ee21259..b0fb12f 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ bin/* *.diff !.gitignore +!.travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f4f728c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,44 @@ +# http://docs.travis-ci.com/user/build-configuration/ +language: cpp + +compiler: + - gcc + - clang + +matrix: + #include: + # - compiler: gcc + # - compiler: clang + allow_failures: + - compiler: clang + +#branches: +# only: +# - master + +before_install: + - sudo apt-get update -qq # UPDATE REPOS + - sudo apt-get install -y -qq + +script: +# ALL THE BUILD COMMANDS HERE + - export CMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH;/usr/lib/x86_64-linux-gnu/" + - CMAKE_OPTIONS='-DCMAKE_PREFIX_PATH='"$CMAKE_PREFIX_PATH"' -DCMAKE_BUILD_TYPE=RelWithDebInfo -DAQUARIA_INTERNAL_FREETYPE=OFF -DAQUARIA_INTERNAL_LUA=OFF -DAQUARIA_INTERNAL_OGGVORBIS=OFF -DAQUARIA_INTERNAL_OPENAL=OFF -DAQUARIA_INTERNAL_PNG=OFF -DAQUARIA_INTERNAL_SDL=OFF -DAQUARIA_INTERNAL_TINYXML2=OFF -DAQUARIA_INTERNAL_ZLIB=OFF' + - rm -rf cmake-build + - mkdir cmake-build + - cd cmake-build + - cmake $CMAKE_OPTIONS .. + - make -j 2 + +#notifications: +# irc: +# channels: +# - "irc.esper.net#bitblot" +# skip_join: true +# use_notice: true +# template: +# #- "[%{commit}: %{author}] %{message}" +# #- "%{build_url}" +# - "[%{repository}#%{branch} @%{commit}] %{author}): %{message}" +# - "Diff: %{compare_url}" +# - "Build: %{build_url}"