Skip unnecessary stages for docs

This commit is contained in:
Manuel de Brito Fontes 2018-09-13 14:02:15 -03:00 committed by Manuel Alejandro de Brito Fontes
parent 4ffe3a2fdd
commit 5559e1a9cc
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
2 changed files with 7 additions and 9 deletions

View file

@ -44,36 +44,37 @@ jobs:
script:
- make cover
- stage: e2e
if: env(COMPONENT) != "docs"
before_script:
- test/e2e/up.sh
script:
- make e2e-test
# split builds to avoid job timeouts
- stage: publish amd64
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx AND env(COMPONENT) = "ingress-controller"
script:
- .travis/publish.sh amd64
- stage: publish arm
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx AND env(COMPONENT) = "ingress-controller"
script:
- make register-qemu
- .travis/publish.sh arm
- stage: publish arm64
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx AND env(COMPONENT) = "ingress-controller"
script:
- make register-qemu
- .travis/publish.sh arm64
- stage: publish ppc64le
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx AND env(COMPONENT) = "ingress-controller"
script:
- make register-qemu
- .travis/publish.sh ppc64le
- stage: publish s390x
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx AND env(COMPONENT) = "ingress-controller"
script:
- make register-qemu
- .travis/publish.sh s390x
- stage: Publish docs
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx AND env(COMPONENT) = "docs"
script:
- .travis/publish-docs.sh

View file

@ -38,9 +38,6 @@ case "$COMPONENT" in
"ingress-controller")
$DIR/ingress-controller.sh
;;
"nginx")
$DIR/nginx.sh
;;
*)
echo "Invalid option in environment variable COMPONENT"
exit 1