Split Travis Build in Stages

Signed-off-by: asifdxtreme <mohammad.asif.siddiqui1@huawei.com>
This commit is contained in:
Mohammad Asif Siddiqui 2017-08-14 20:44:35 +08:00 committed by asifdxtreme
parent 83a20c9fd1
commit b55e75b55e

View File

@ -1,7 +1,6 @@
language: go language: go
go: go:
- 1.8.x - 1.8
- tip
sudo: required sudo: required
@ -24,12 +23,20 @@ install:
before_script: before_script:
- export PATH=$HOME/gopath/bin:$PATH - export PATH=$HOME/gopath/bin:$PATH
script: jobs:
- make .gitvalidation include:
- make verify - stage: Static Check
- make binaries script:
- make test - make .gitvalidation
- make test-cri - make verify
- stage: Build
script: make binaries
- stage: Unit Test
script: make test
- stage: Integration Test
script:
- make binaries
- 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.