git:
  depth: 150

language: go
go:
  - 1.12.x
  - tip


matrix:
  allow_failures:
    - go: tip

sudo: required

services:
  - docker

cache:
  directories:
    - "${HOME}/google-cloud-sdk/"

before_install:
  # libseccomp in trusty is not new enough, need backports version.
  - sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' > /etc/apt/sources.list.d/backports.list"
  - sudo apt-get update
  # Enable ipv6 for dualstack integration test.
  - sudo sysctl net.ipv6.conf.all.disable_ipv6=0

install:
  - sudo apt-get install btrfs-tools
  - sudo apt-get install libseccomp2/trusty-backports
  - sudo apt-get install libseccomp-dev/trusty-backports
  - sudo apt-get install socat

before_script:
  - export PATH=$HOME/gopath/bin:$PATH

script:
  - make .install.gitvalidation
  - make .gitvalidation
  - make install.deps
  - make containerd
  - sudo PATH=$PATH GOPATH=$GOPATH make install-containerd
  - make test
  - make test-integration
  - make test-cri
after_script:
  # Abuse travis to preserve the log.
  - cat /tmp/test-integration/containerd.log
  - cat /tmp/test-cri/containerd.log

git:
  depth: 150

language: go
go:
  - 1.12.x
  - tip


matrix:
  allow_failures:
    - go: tip

sudo: required

services:
  - docker

cache:
  directories:
    - "${HOME}/google-cloud-sdk/"

before_install:
  - sudo apt-get update
  # Enable ipv6 for dualstack integration test.
  - sudo sysctl net.ipv6.conf.all.disable_ipv6=0

install:
  - sudo apt-get install btrfs-tools
  - sudo apt-get install libseccomp2
  - sudo apt-get install libseccomp-dev
  - sudo apt-get install socat

before_script:
  - export PATH=$HOME/gopath/bin:$PATH

script:
  - make .install.gitvalidation
  - make .gitvalidation
  - make install.deps
  - make containerd
  - sudo PATH=$PATH GOPATH=$GOPATH make install-containerd
  - make test
  - make test-integration
  - make test-cri
after_script:
  # Abuse travis to preserve the log.
  - cat /tmp/test-integration/containerd.log
  - cat /tmp/test-cri/containerd.log

Update based on default xenial distro.
Update based on default xenial distro.

Signed-off-by: Lantao Liu <e12a959b3f33bba53f1a03da59760f37bd7265d7@google.com>
