summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZane van Iperen <z.vaniperen@uq.edu.au>2019-05-13 13:27:20 +1000
committerAlan Antonuk <alan.antonuk@gmail.com>2019-05-13 23:18:39 -0700
commitafa514ec91d4e85409a3a3dc939b247424305332 (patch)
tree7b6197c008c05bc0f6f2533bffe904043e5a5532
parent75a21e51db5d70ea807473621141b4417d81b56f (diff)
downloadrabbitmq-c-afa514ec91d4e85409a3a3dc939b247424305332.tar.gz
ci: Bump Travis dist to Xenial as Trusty is now EOL
-rw-r--r--.travis.yml39
1 files changed, 18 insertions, 21 deletions
diff --git a/.travis.yml b/.travis.yml
index 5d26e0f..52a66b9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,19 +3,32 @@
language: c
-dist: trusty
+dist: xenial
# Currently libpopt-dev is not on the list of whitelisted apt-packages.
sudo: true
+addons:
+ apt:
+ packages: &default_packages
+ - rabbitmq-server
+ - clang-3.9
+ - clang-format-3.9
+ - libpopt-dev
+ coverity_scan:
+ project:
+ name: "alanxz/rabbitmq-c"
+ description: "C AMQP client for RabbitMQ"
+ notification_email: alan.antonuk@gmail.com
+ build_command_prepend: mkdir build && pushd build && cmake .. && popd
+ build_command: cmake --build ./build
+ branch_pattern: coverity_scan
+
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "gDwqo3jHj+HHGzFKnxL/nwZhbVeh2pItw0TbeaHcLtWubUZaf85ViEQRaXPyfnbG7l0OEQq+PjyhKAfvViVq2NP0lGeeu4VM5uMZJhsCLN594BJr39Y4XzOapg0O8mEMhQ0DU2u1Zo4LMgEcRz67aosVQOj6QV30tOzp9fnxn9U="
-services:
- - rabbitmq
-
matrix:
include:
# Note that the first compiler in the matrix must be gcc, so that the
@@ -52,6 +65,7 @@ matrix:
sources:
- sourceline: 'ppa:ondrej/nginx-mainline'
packages:
+ - *default_packages
- libssl1.1
- openssl
- libssl-dev
@@ -62,13 +76,6 @@ matrix:
env: CONFIG=tsan
before_install:
- - |
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
- wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main"
- sudo apt-get -q update;
- sudo apt-get install -y clang-3.9 clang-format-3.9 libpopt-dev;
- fi
# ugly hack; if running a coverity scan abort all except the 1st build
# see note re gcc compiler above needing to be 1st
# also note that branch_pattern & the TRAVIS_BRANCH check must match
@@ -80,13 +87,3 @@ before_install:
script:
# Don't bother building if this is being done in the coverity_scan branch.
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./travis.sh $CONFIG ; fi
-
-addons:
- coverity_scan:
- project:
- name: "alanxz/rabbitmq-c"
- description: "C AMQP client for RabbitMQ"
- notification_email: alan.antonuk@gmail.com
- build_command_prepend: mkdir build && pushd build && cmake .. && popd
- build_command: cmake --build ./build
- branch_pattern: coverity_scan