language: go
go:
    - 1.8

sudo: required

services:
    - docker

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

install: 
    - sudo apt-get install btrfs-tools
    - sudo apt-get install libseccomp2/trusty-backports
    - sudo apt-get install libseccomp-dev/trusty-backports
    - docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter 
    - make install.tools
    - make install.deps

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

jobs:
  include:
    - stage: Static Check
      script: 
        - make .gitvalidation
        - make verify
    - stage: Build
      script: make binaries
    - stage: Unit Test
      script: make test
    - stage: Integration Test
      script:
        - make binaries
        - make test-cri
after_script:
    # Abuse travis to preserve the log.
    # TODO(random-liu): Use prow for integration test.
    - cat /tmp/cri-containerd.log
    - cat /tmp/containerd.log

language: go
go:
    - 1.8

sudo: required

services:
    - docker

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

install: 
    - sudo apt-get install btrfs-tools
    - sudo apt-get install libseccomp2/trusty-backports
    - sudo apt-get install libseccomp-dev/trusty-backports
    - docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter 

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

jobs:
  include:
    - stage: Build
      script: 
        - make install.tools
        - make .gitvalidation
        - make verify
        - make binaries
    - stage: Test
      script:
        - make install.deps
        - make test
        - make binaries
        - make test-cri

after_script:
    # Abuse travis to preserve the log.
    # TODO(random-liu): Use prow for integration test.
    - cat /tmp/cri-containerd.log
    - cat /tmp/containerd.log

Update stage as per suggestion
Update stage as per suggestion

Signed-off-by: asifdxtreme <3aaa687c39c69373a27233676f0acb1a600f8a78@huawei.com>
