separate travis into multiple jobs
Parallelize travis by splitting the integration and unit tests into their own jobs. Make images remains as part of the integration tests.
This commit is contained in:
parent
2716557379
commit
6a85c8e89e
27
.travis.yml
27
.travis.yml
|
|
@ -6,14 +6,19 @@ env:
|
||||||
go:
|
go:
|
||||||
- "1.13.3"
|
- "1.13.3"
|
||||||
go_import_path: github.com/GoogleContainerTools/kaniko
|
go_import_path: github.com/GoogleContainerTools/kaniko
|
||||||
before_install:
|
jobs:
|
||||||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
include:
|
||||||
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
- name: unit-test
|
||||||
- sudo apt-get update
|
script:
|
||||||
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
- make test
|
||||||
- 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
|
- name: integration-test
|
||||||
- docker run -d -p 5000:5000 --restart always --name registry registry:2
|
before_install:
|
||||||
script:
|
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
- make test
|
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||||
- make integration-test
|
- sudo apt-get update
|
||||||
- make images
|
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
||||||
|
- 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
|
||||||
|
script:
|
||||||
|
- make integration-test
|
||||||
|
- make images
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue