From 7270167acac3cac01792cf5874c665ca37feb2de Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Tue, 1 Jan 2019 10:38:16 -0500 Subject: [PATCH] travis: Specify test matrix explicitly and add OS X --- .travis.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index fab586f60..edb7f5760 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,25 @@ sudo: required -env: - - CONTAINER=fedora28 - - CONTAINER=debianstable - - CONTAINER=ubuntu1604 -services: - - docker +language: python +matrix: + include: + - name: "Fedora 28" + os: linux + env: CONTAINER=fedora28 + services: docker + - name: "Debian Stable" + - os: linux + env: CONTAINER=debianstable + services: docker + - name: "Ubuntu 16.04" + - os: linux + env: CONTAINER=ubuntu1604 + services: docker + - name: "Mac OS X" + os: osx + env: CONTAINER=osx install: # Build the docker container - pushd $TRAVIS_BUILD_DIR - - docker-compose build test-$CONTAINER + - if [[ $CONTAINER != "osx" ]]; then docker-compose build test-$CONTAINER; done script: - - docker-compose run test-$CONTAINER + - if [[ $CONTAINER != "osx" ]]; then docker-compose build test-$CONTAINER; else uname -a; done