#
# Copyright 2017 HyperHQ Inc.
#
# SPDX-License-Identifier: Apache-2.0
#


os:
  - linux
  - osx
  - linux-ppc64le

matrix:
  include:
    - os: linux
      sudo: required
      dist: trusty

language: go
go_import_path: github.com/kata-containers/shim

go:
  - "1.11.x"

env:
  - target_branch=$TRAVIS_BRANCH

before_script:
  - ".ci/static-checks.sh"

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; fi

install:
  - cd ${TRAVIS_BUILD_DIR} && make

script:
  - cd ${TRAVIS_BUILD_DIR} && make test

after_success:
  - bash <(curl -s https://codecov.io/bash)

#
# Copyright 2017 HyperHQ Inc.
#
# SPDX-License-Identifier: Apache-2.0
#


os:
  - linux
  - osx
  - linux-ppc64le

matrix:
  include:
    - os: linux
      sudo: required
      dist: xenial

language: go
go_import_path: github.com/kata-containers/shim

go:
  - "1.11.x"

env:
  - target_branch=$TRAVIS_BRANCH

before_script:
  - ".ci/static-checks.sh"

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; fi

install:
  - cd ${TRAVIS_BUILD_DIR} && make

script:
  - cd ${TRAVIS_BUILD_DIR} && make test

after_success:
  - bash <(curl -s https://codecov.io/bash)

Update default ubuntu distro to xenial
ci: Update default ubuntu distro to xenial

Fixes: #164

Signed-off-by: Ganesh Maharaj Mahalingam <e84b6eb1374b2034268ad16b797fbec9318eafab@intel.com>
