language: go

os:
  - linux
  - osx

go:
  - 1.5.1

env:
  global:
    - PROJ="github.com/elastic/gosigar"

sudo: false

before_install:
  # Put project into proper GOPATH location (important for forks).
  - mkdir -p $HOME/gopath/src/${PROJ}
  - rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/${PROJ}/
  - export TRAVIS_BUILD_DIR=$HOME/gopath/src/${PROJ}
  - cd $HOME/gopath/src/${PROJ}

install:
  - go get -v -t -d

script:
  - go build
  - go test

language: go

os:
  - linux
  - osx

go:
  - 1.5.1

env:
  global:
    - PROJ="github.com/elastic/gosigar"

sudo: false

before_install:
  # Put project into proper GOPATH location (important for forks).
  - mkdir -p $HOME/gopath/src/${PROJ}
  - rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/${PROJ}/
  - export TRAVIS_BUILD_DIR=$HOME/gopath/src/${PROJ}
  - cd $HOME/gopath/src/${PROJ}

install:
  - go get -v -t -d

script:
  - go build
  - go test

matrix:
  allow_failures:
    # Investigating linux bug with gosigar's nproc value.
    - os: linux

Allow failures on linux until the nproc issue is investigated and resolved.
Allow failures on linux until the nproc issue is investigated and resolved.
