Split Travis Build in Stages
Signed-off-by: asifdxtreme <mohammad.asif.siddiqui1@huawei.com>
This commit is contained in:
parent
83a20c9fd1
commit
b55e75b55e
13
.travis.yml
13
.travis.yml
@ -1,7 +1,6 @@
|
|||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.8.x
|
- 1.8
|
||||||
- tip
|
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
@ -24,11 +23,19 @@ install:
|
|||||||
before_script:
|
before_script:
|
||||||
- export PATH=$HOME/gopath/bin:$PATH
|
- export PATH=$HOME/gopath/bin:$PATH
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- stage: Static Check
|
||||||
script:
|
script:
|
||||||
- make .gitvalidation
|
- make .gitvalidation
|
||||||
- make verify
|
- make verify
|
||||||
|
- stage: Build
|
||||||
|
script: make binaries
|
||||||
|
- stage: Unit Test
|
||||||
|
script: make test
|
||||||
|
- stage: Integration Test
|
||||||
|
script:
|
||||||
- make binaries
|
- make binaries
|
||||||
- make test
|
|
||||||
- make test-cri
|
- make test-cri
|
||||||
after_script:
|
after_script:
|
||||||
# Abuse travis to preserve the log.
|
# Abuse travis to preserve the log.
|
||||||
|
Loading…
Reference in New Issue
Block a user