Split travis jobs to avoid timeouts

This commit is contained in:
Manuel de Brito Fontes 2017-11-01 19:47:08 -03:00
parent 987da4c81c
commit fdeb965cb5
5 changed files with 40 additions and 13 deletions

View file

@ -1,3 +1,5 @@
dist: trusty
sudo: required
services:
@ -6,7 +8,9 @@ services:
language: go
notifications:
email: true
email:
on_failure: always
on_success: never
go:
- 1.9.2
@ -43,6 +47,20 @@ jobs:
- test/e2e/up.sh
script:
- make e2e-test
- stage: publish
# split builds to avoid job timeouts
- stage: publish amd64
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
script:
- .travis/publish.sh
- ARCH=amd64 .travis/publish.sh
- stage: publish arm
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
script:
- ARCH=arm .travis/publish.sh
- stage: publish arm64
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
script:
- ARCH=arm64 .travis/publish.sh
- stage: publish ppc64le
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
script:
- ARCH=ppc64le .travis/publish.sh