From 2a67f4fc12d1104b2d294af163fa109e27fdf612 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Fri, 20 Jan 2017 16:50:04 +0300 Subject: [PATCH] travis-ci: install cmake from xenial (CTEST_PARALLEL_LEVEL support) cmake supports it since 3.0 I guess. And it must be trusty (not precise), otherwise it fails: dpkg: error processing /var/cache/apt/archives/ifupdown_0.8.10ubuntu1_amd64.deb (--unpack): trying to overwrite '/etc/init.d/networking', which is also in package netbase 4.47ubuntu1 Link: https://travis-ci.org/azat/libevent/jobs/193744023 --- .travis.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index acc85e6a..0aab24c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ os: - linux - osx sudo: false +dist: trusty env: matrix: @@ -47,14 +48,17 @@ before_install: addons: apt: + sources: + - xenial + - sourceline: 'deb http://archive.ubuntu.com/ubuntu xenial main' packages: - - zlib1g-dev - - libssl-dev - - build-essential - - automake - - autoconf - - cmake - - lcov + - zlib1g-dev + - libssl-dev + - build-essential + - automake + - autoconf + - cmake + - lcov script: - if [ "$EVENT_BUILD_METHOD" = "autotools" ]; then