Merge pull request #132 from asifdxtreme/patch-1

Split the travis Build in different Build and Test Stage
This commit is contained in:
Lantao Liu 2017-08-14 21:07:56 -07:00 committed by GitHub
commit 7ba0679e14

View File

@ -1,7 +1,6 @@
language: go language: go
go: go:
- 1.8.x - 1.8
- tip
sudo: required sudo: required
@ -18,18 +17,25 @@ install:
- sudo apt-get install libseccomp2/trusty-backports - sudo apt-get install libseccomp2/trusty-backports
- sudo apt-get install libseccomp-dev/trusty-backports - sudo apt-get install libseccomp-dev/trusty-backports
- docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter - docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter
- make install.tools
- make install.deps
before_script: before_script:
- export PATH=$HOME/gopath/bin:$PATH - export PATH=$HOME/gopath/bin:$PATH
script: jobs:
include:
- stage: Build
script:
- make install.tools
- make .gitvalidation - make .gitvalidation
- make verify - make verify
- make binaries - make binaries
- stage: Test
script:
- make install.deps
- make test - make test
- make binaries
- make test-cri - make test-cri
after_script: after_script:
# Abuse travis to preserve the log. # Abuse travis to preserve the log.
# TODO(random-liu): Use prow for integration test. # TODO(random-liu): Use prow for integration test.