From 5595ba643e126462e1fc6ff92a4dde850558983c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 22 Apr 2015 23:03:29 +0900 Subject: [PATCH] travis: Use container-based infrastructure --- .travis.yml | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 59d8c3a2..c13f8a25 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,28 +3,29 @@ compiler: - clang #Disable gcc build for the moment... # - gcc +sudo: false +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.8 + - libstdc++-4.8-dev + - autoconf + - automake + - autotools-dev + - libtool + - pkg-config + - zlib1g-dev + - libcunit1-dev + - libssl-dev + - libxml2-dev + - libev-dev + - libevent-dev + - libjansson-dev + - libjemalloc-dev 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 - libev-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: