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:
|
script:
|
||||||
- make cover
|
- make cover
|
||||||
- stage: e2e
|
- stage: e2e
|
||||||
|
if: env(COMPONENT) != "docs"
|
||||||
before_script:
|
before_script:
|
||||||
- test/e2e/up.sh
|
- test/e2e/up.sh
|
||||||
script:
|
script:
|
||||||
- make e2e-test
|
- make e2e-test
|
||||||
# split builds to avoid job timeouts
|
# split builds to avoid job timeouts
|
||||||
- stage: publish amd64
|
- 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:
|
script:
|
||||||
- .travis/publish.sh amd64
|
- .travis/publish.sh amd64
|
||||||
- stage: publish arm
|
- 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:
|
script:
|
||||||
- make register-qemu
|
- make register-qemu
|
||||||
- .travis/publish.sh arm
|
- .travis/publish.sh arm
|
||||||
- stage: publish arm64
|
- 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:
|
script:
|
||||||
- make register-qemu
|
- make register-qemu
|
||||||
- .travis/publish.sh arm64
|
- .travis/publish.sh arm64
|
||||||
- stage: publish ppc64le
|
- 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:
|
script:
|
||||||
- make register-qemu
|
- make register-qemu
|
||||||
- .travis/publish.sh ppc64le
|
- .travis/publish.sh ppc64le
|
||||||
- stage: publish s390x
|
- 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:
|
script:
|
||||||
- make register-qemu
|
- make register-qemu
|
||||||
- .travis/publish.sh s390x
|
- .travis/publish.sh s390x
|
||||||
- stage: Publish docs
|
- 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:
|
script:
|
||||||
- .travis/publish-docs.sh
|
- .travis/publish-docs.sh
|
||||||
|
|
|
@ -38,9 +38,6 @@ case "$COMPONENT" in
|
||||||
"ingress-controller")
|
"ingress-controller")
|
||||||
$DIR/ingress-controller.sh
|
$DIR/ingress-controller.sh
|
||||||
;;
|
;;
|
||||||
"nginx")
|
|
||||||
$DIR/nginx.sh
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
echo "Invalid option in environment variable COMPONENT"
|
echo "Invalid option in environment variable COMPONENT"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue