Skip unnecessary stages for docs
This commit is contained in:
parent
4ffe3a2fdd
commit
5559e1a9cc
2 changed files with 7 additions and 9 deletions
13
.travis.yml
13
.travis.yml
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue