From 92958a874b7943e3efab21a4ef874f008e784111 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 2 Jul 2014 11:33:49 -0700 Subject: [PATCH] Add travis CI support --- .travis.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..856bb39ae --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +language: cpp +git: + submodules: false +before_install: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo add-apt-repository -y ppa:vslavik/poedit + - sudo apt-get update -qq + - sudo apt-get install -qq g++-4.8 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 +install: + - sudo apt-get install -y -qq libasound2-dev libfftw3-dev libhunspell-dev yasm libfribidi-dev libass-dev libffms2-dev libwxgtk3.0-dev libicu-dev luarocks + - sudo luarocks install busted > /dev/null + + - git submodule --quiet init + - git submodule --quiet update vendor/boost vendor/googletest + + - cd vendor/boost + - git submodule --quiet update --init --recursive + - ./bootstrap.sh + - ./b2 headers > /dev/null + - ./b2 -layout=system threading=multi cxxflags=-std=c++11 link=shared variant=release --without-python --without-iostreams --without-serialization --without-graph --without-log --without-math --without-signals --without-test --without-wave --without-mpi --without-program_options --without-graph_parallel --without-context --without-coroutine --without-random --without-timer --without-date_time + - cd ../.. +script: + - export CPATH=$(pwd)/vendor/boost + - export LD_LIBRARY_PATH=$(pwd)/vendor/boost/stage/lib:$LD_LIBRARY_PATH + - autoreconf -if + - ./configure BOOST_LDFLAGS="-L$(pwd)/vendor/boost/stage/lib" || cat config.log + - make -j3 all test +notifications: + email: + - on_success: change + - on_failure: change +