dist: trusty
sudo: required
group: deprecated-2017Q4

language: go
go_import_path: github.com/opensds/opensds

go:
  - 1.9.x
  - tip

env:
  matrix:
  - TARGET=amd64
  # - TARGET=arm64
  # - TARGET=arm
  # - TARGET=386
  # - TARGET=ppc64le
  global:
  - secure: "IhEskTMEAsBNYTQCpDSlvDxIJK5cu1r2V"

before_install:
  - sudo apt-get install -y lvm2 tgt open-iscsi

matrix:
  fast_finish: true
  allow_failures:
  - go: tip
  exclude:
  # - go: tip
  #   env: TARGET=arm
  # - go: tip
  #   env: TARGET=arm64
  # - go: tip
  #   env: TARGET=386
  # - go: tip
  #   env: TARGET=ppc64le

install:
  - go get github.com/mattn/goveralls
  - go get github.com/wadey/gocovmerge
  # Build OpenSDS Controller source code
  - make all

script:
  - ./script/CI/coverage
  - ./script/CI/test

after_success:
  - $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=cover.out
  # Clean OpenSDS Controller built data
  - make clean

dist: trusty
sudo: required
group: deprecated-2017Q4

language: go
go_import_path: github.com/opensds/opensds

go:
  - 1.9.x
  - tip

env:
  matrix:
  - TARGET=amd64
  # - TARGET=arm64
  # - TARGET=arm
  # - TARGET=386
  # - TARGET=ppc64le
  global:
  - secure: "IhEskTMEAsBNYTQCpDSlvDxIJK5cu1r2V"

before_install:
  - sudo apt-get update
  - sudo apt-get install -y build-essential gcc
  - sudo apt-get install -y librados-dev librbd-dev
  - sudo apt-get install -y lvm2 tgt open-iscsi

matrix:
  fast_finish: true
  allow_failures:
  - go: tip
  exclude:
  # - go: tip
  #   env: TARGET=arm
  # - go: tip
  #   env: TARGET=arm64
  # - go: tip
  #   env: TARGET=386
  # - go: tip
  #   env: TARGET=ppc64le

install:
  - go get github.com/mattn/goveralls
  - go get github.com/wadey/gocovmerge
  # Build OpenSDS Controller source code
  - make all

script:
  - ./script/CI/coverage
  - ./script/CI/test

after_success:
  - $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=cover.out
  # Clean OpenSDS Controller built data
  - make clean

Install necessary packages for CI
Install necessary packages for CI

The CI jobs previously had relied on the makefile making
assumptions about platform and modifying the build system.
This should be done as part of the CI configuration.

This adds the required packages to be installed as part of
the Travis CI configuration.

Signed-off-by: Sean McGinnis <961eeb09b6d45516665e15b82e013282c4faf575@gmail.com>
