Merge pull request #1055 from cvgw/u/cgwippern/travis-multi-stage
separate travis into multiple jobs for parallelization
This commit is contained in:
commit
360e44b2b9
|
|
@ -6,6 +6,12 @@ env:
|
||||||
go:
|
go:
|
||||||
- "1.13.3"
|
- "1.13.3"
|
||||||
go_import_path: github.com/GoogleContainerTools/kaniko
|
go_import_path: github.com/GoogleContainerTools/kaniko
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- name: unit-test
|
||||||
|
script:
|
||||||
|
- make test
|
||||||
|
- name: integration-test
|
||||||
before_install:
|
before_install:
|
||||||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||||
|
|
@ -14,6 +20,5 @@ before_install:
|
||||||
- curl -LO https://storage.googleapis.com/container-diff/latest/container-diff-linux-amd64 && chmod +x container-diff-linux-amd64 && sudo mv container-diff-linux-amd64 /usr/local/bin/container-diff
|
- curl -LO https://storage.googleapis.com/container-diff/latest/container-diff-linux-amd64 && chmod +x container-diff-linux-amd64 && sudo mv container-diff-linux-amd64 /usr/local/bin/container-diff
|
||||||
- docker run -d -p 5000:5000 --restart always --name registry registry:2
|
- docker run -d -p 5000:5000 --restart always --name registry registry:2
|
||||||
script:
|
script:
|
||||||
- make test
|
|
||||||
- make integration-test
|
- make integration-test
|
||||||
- make images
|
- make images
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue