From 3921af434aba8f7a67e716c9f7b3a8c45760a024 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 27 May 2014 08:31:22 +0200 Subject: [PATCH] Add .travis.yml to get build by Travis-ci (Github) Use gcc-4.8 (don't build with gcc-4.6) Update libstdc++-4.8 to fix Clang build Don't install cython (Never build...) --- .travis.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..dda5cedf --- /dev/null +++ b/.travis.yml @@ -0,0 +1,36 @@ +language: cpp +compiler: + - clang + - gcc +python: + - "3.4" +before_install: + - $CC --version + - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test + - sudo apt-get update -qq + #Install and use gcc-4.8 (don't build with gcc-4.6) + #libstdc++-4.8 is needed by Clang to build too + - sudo apt-get -qq install g++-4.8 libstdc++-4.8-dev + - > + sudo apt-get install --no-install-recommends -qq + autoconf + automake + autotools-dev + libtool + pkg-config + zlib1g-dev + libcunit1-dev + libssl-dev + libxml2-dev + libevent-dev + libjansson-dev + libjemalloc-dev + - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi + - $CC --version +before_script: + - autoreconf -i + - automake + - autoconf + - ./configure --enable-werror +script: + - make