ci: only run aio_preview job on PR builds (#26030)

There can be no preview on non-PR builds, so there is no point in
running the job.

PR Close #26030
This commit is contained in:
George Kalpakas
2018-09-20 11:21:53 +03:00
committed by Kara Erickson
parent 0ec925bd2f
commit f1cb46081c
2 changed files with 9 additions and 3 deletions

View File

@ -148,6 +148,7 @@ jobs:
- run: bazel run @yarn//:yarn
- run: bazel query --output=label //... | xargs bazel test --define=compile=local --build_tag_filters=ivy-local --test_tag_filters=-manual,ivy-local
# This job should only be run on PR builds, where `CIRCLE_PR_NUMBER` is defined.
aio_preview:
<<: *job_defaults
environment:
@ -262,7 +263,11 @@ workflows:
- test_ivy_jit
- test_ivy_aot
- build-packages-dist
- aio_preview
- aio_preview:
# Only run on PR builds. (There can be no previews for non-PR builds.)
filters:
branches:
only: /pull\/\d+/
- integration_test:
requires:
- build-packages-dist
@ -291,6 +296,7 @@ workflows:
branches:
only:
- master
notify:
webhooks:
- url: https://ngbuilds.io/circle-build