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
This commit is contained in:
Azat Khuzhin 2017-01-20 16:50:04 +03:00
parent ea1d30cac4
commit 2a67f4fc12

View File

@ -2,6 +2,7 @@ os:
- linux - linux
- osx - osx
sudo: false sudo: false
dist: trusty
env: env:
matrix: matrix:
@ -47,14 +48,17 @@ before_install:
addons: addons:
apt: apt:
sources:
- xenial
- sourceline: 'deb http://archive.ubuntu.com/ubuntu xenial main'
packages: packages:
- zlib1g-dev - zlib1g-dev
- libssl-dev - libssl-dev
- build-essential - build-essential
- automake - automake
- autoconf - autoconf
- cmake - cmake
- lcov - lcov
script: script:
- if [ "$EVENT_BUILD_METHOD" = "autotools" ]; then - if [ "$EVENT_BUILD_METHOD" = "autotools" ]; then