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:
parent
41ac58ab7d
commit
48e73c1558
@ -140,6 +140,7 @@ jobs:
|
|||||||
- *setup_bazel_remote_execution
|
- *setup_bazel_remote_execution
|
||||||
- run: bazel query --output=label //... | xargs bazel test --define=compile=local --build_tag_filters=ivy-local --test_tag_filters=-manual,ivy-local
|
- 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:
|
aio_preview:
|
||||||
<<: *job_defaults
|
<<: *job_defaults
|
||||||
environment:
|
environment:
|
||||||
@ -251,7 +252,11 @@ workflows:
|
|||||||
- test_ivy_jit
|
- test_ivy_jit
|
||||||
- test_ivy_aot
|
- test_ivy_aot
|
||||||
- build-packages-dist
|
- 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:
|
- integration_test:
|
||||||
requires:
|
requires:
|
||||||
- build-packages-dist
|
- build-packages-dist
|
||||||
@ -280,6 +285,7 @@ workflows:
|
|||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
webhooks:
|
webhooks:
|
||||||
- url: https://ngbuilds.io/circle-build
|
- url: https://ngbuilds.io/circle-build
|
||||||
|
@ -9,13 +9,13 @@ readonly OUTPUT_FILE=$PROJECT_ROOT/$1
|
|||||||
readonly PR_NUMBER=$2
|
readonly PR_NUMBER=$2
|
||||||
readonly PR_LAST_SHA=$3
|
readonly PR_LAST_SHA=$3
|
||||||
readonly deployedUrl=https://pr${PR_NUMBER}-${PR_LAST_SHA:0:7}.ngbuilds.io/
|
readonly deployedUrl=https://pr${PR_NUMBER}-${PR_LAST_SHA:0:7}.ngbuilds.io/
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $PROJECT_ROOT/aio
|
cd $PROJECT_ROOT/aio
|
||||||
|
|
||||||
# Build and store the app
|
# Build and store the app
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
# Set deployedUrl as parameter in the opensearch description
|
# Set deployedUrl as parameter in the opensearch description
|
||||||
# deployedUrl must end with /
|
# deployedUrl must end with /
|
||||||
yarn set-opensearch-url $deployedUrl
|
yarn set-opensearch-url $deployedUrl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user