ci(aio): move e2e tests to optional job (#20178)
This commit is contained in:
parent
8b50ed083c
commit
63d26a1777
@ -54,6 +54,7 @@ env:
|
|||||||
- CI_MODE=browserstack_optional
|
- CI_MODE=browserstack_optional
|
||||||
- CI_MODE=aio_tools_test
|
- CI_MODE=aio_tools_test
|
||||||
- CI_MODE=aio
|
- CI_MODE=aio
|
||||||
|
- CI_MODE=aio_optional
|
||||||
- CI_MODE=aio_e2e AIO_SHARD=0
|
- CI_MODE=aio_e2e AIO_SHARD=0
|
||||||
- CI_MODE=aio_e2e AIO_SHARD=1
|
- CI_MODE=aio_e2e AIO_SHARD=1
|
||||||
- CI_MODE=bazel
|
- CI_MODE=bazel
|
||||||
@ -63,6 +64,7 @@ matrix:
|
|||||||
allow_failures:
|
allow_failures:
|
||||||
- env: "CI_MODE=saucelabs_optional"
|
- env: "CI_MODE=saucelabs_optional"
|
||||||
- env: "CI_MODE=browserstack_optional"
|
- env: "CI_MODE=browserstack_optional"
|
||||||
|
- env: "CI_MODE=aio_optional"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# source the env.sh script so that the exported variables are available to other scripts later on
|
# source the env.sh script so that the exported variables are available to other scripts later on
|
||||||
|
@ -47,7 +47,12 @@ travisFoldStart "bower-install"
|
|||||||
travisFoldEnd "bower-install"
|
travisFoldEnd "bower-install"
|
||||||
|
|
||||||
|
|
||||||
if [[ ${TRAVIS} && (${CI_MODE} == "aio" || ${CI_MODE} == "aio_e2e" || ${CI_MODE} == "aio_tools_test") ]]; then
|
if [[ ${TRAVIS} &&
|
||||||
|
${CI_MODE} == "aio" ||
|
||||||
|
${CI_MODE} == "aio_e2e" ||
|
||||||
|
${CI_MODE} == "aio_tools_test" ||
|
||||||
|
${CI_MODE} == "aio_optional"
|
||||||
|
]]; then
|
||||||
# angular.io: Install all yarn dependencies according to angular.io/yarn.lock
|
# angular.io: Install all yarn dependencies according to angular.io/yarn.lock
|
||||||
travisFoldStart "yarn-install.aio"
|
travisFoldStart "yarn-install.aio"
|
||||||
(
|
(
|
||||||
@ -74,7 +79,14 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# Install Chromium
|
# Install Chromium
|
||||||
if [[ ${TRAVIS} && ${CI_MODE} == "js" || ${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} == "aio" || ${CI_MODE} == "aio_e2e" ]]; then
|
if [[ ${TRAVIS} &&
|
||||||
|
${CI_MODE} == "js" ||
|
||||||
|
${CI_MODE} == "e2e" ||
|
||||||
|
${CI_MODE} == "e2e_2" ||
|
||||||
|
${CI_MODE} == "aio" ||
|
||||||
|
${CI_MODE} == "aio_e2e" ||
|
||||||
|
${CI_MODE} == "aio_optional"
|
||||||
|
]]; then
|
||||||
travisFoldStart "install-chromium"
|
travisFoldStart "install-chromium"
|
||||||
(
|
(
|
||||||
${thisDir}/install-chromium.sh
|
${thisDir}/install-chromium.sh
|
||||||
|
18
scripts/ci/test-aio-optional.sh
Executable file
18
scripts/ci/test-aio-optional.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -u -e -o pipefail
|
||||||
|
|
||||||
|
# Setup environment
|
||||||
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
||||||
|
source ${thisDir}/_travis-fold.sh
|
||||||
|
|
||||||
|
# run in subshell to avoid polluting cwd
|
||||||
|
(
|
||||||
|
cd ${PROJECT_ROOT}/aio
|
||||||
|
# Run e2e tests
|
||||||
|
travisFoldStart "test.aio.e2e"
|
||||||
|
yarn setup
|
||||||
|
yarn e2e
|
||||||
|
travisFoldEnd "test.aio.e2e"
|
||||||
|
|
||||||
|
)
|
@ -31,12 +31,6 @@ source ${thisDir}/_travis-fold.sh
|
|||||||
travisFoldEnd "test.aio.unit"
|
travisFoldEnd "test.aio.unit"
|
||||||
|
|
||||||
|
|
||||||
# Run e2e tests
|
|
||||||
travisFoldStart "test.aio.e2e"
|
|
||||||
yarn e2e
|
|
||||||
travisFoldEnd "test.aio.e2e"
|
|
||||||
|
|
||||||
|
|
||||||
# Run unit tests for aio/aio-builds-setup
|
# Run unit tests for aio/aio-builds-setup
|
||||||
travisFoldStart "test.aio.aio-builds-setup"
|
travisFoldStart "test.aio.aio-builds-setup"
|
||||||
./aio-builds-setup/scripts/test.sh
|
./aio-builds-setup/scripts/test.sh
|
||||||
|
@ -46,6 +46,9 @@ case ${CI_MODE} in
|
|||||||
aio_e2e)
|
aio_e2e)
|
||||||
${thisDir}/test-aio-e2e.sh
|
${thisDir}/test-aio-e2e.sh
|
||||||
;;
|
;;
|
||||||
|
aio_optional)
|
||||||
|
${thisDir}/test-aio-optional.sh
|
||||||
|
;;
|
||||||
bazel)
|
bazel)
|
||||||
${thisDir}/test-bazel.sh
|
${thisDir}/test-bazel.sh
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user