From 72e29e688dbd6deb94f00865bf993a0f5ded7b44 Mon Sep 17 00:00:00 2001 From: Salvador Fuentes Date: Fri, 31 Aug 2018 11:59:44 -0500 Subject: [PATCH] travis: add linux-ppc64le and osx Run static checks on linux-ppc64le and osx. Fixes: #691. Signed-off-by: Salvador Fuentes --- .ci/static-checks.sh | 2 +- .travis.yml | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.ci/static-checks.sh b/.ci/static-checks.sh index fe6d9013c9..12a3d22fe2 100755 --- a/.ci/static-checks.sh +++ b/.ci/static-checks.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017-2018 Intel Corporation # diff --git a/.travis.yml b/.travis.yml index a4f3f0b70f..f9a4a14954 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,19 @@ # SPDX-License-Identifier: Apache-2.0 # -dist: trusty +os: + - linux + - osx + - linux-ppc64le + +matrix: + include: + - os: linux + sudo: required + dist: trusty language: go +go_import_path: github.com/kata-containers/tests go: - "1.10.x" @@ -15,5 +25,10 @@ go: env: - target_branch=$TRAVIS_BRANCH -before_script: - - ".ci/static-checks.sh github.com/kata-containers/tests" +before_install: + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y -qq automake ; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install bash coreutils; fi + +script: + - bash .ci/static-checks.sh github.com/kata-containers/tests