Skip to content

Commit 63d26a1

Browse files
petebacondarwinvicb
authored andcommitted
ci(aio): move e2e tests to optional job (angular#20178)
1 parent 8b50ed0 commit 63d26a1

File tree

5 files changed

+37
-8
lines changed

5 files changed

+37
-8
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ env:
5454
- CI_MODE=browserstack_optional
5555
- CI_MODE=aio_tools_test
5656
- CI_MODE=aio
57+
- CI_MODE=aio_optional
5758
- CI_MODE=aio_e2e AIO_SHARD=0
5859
- CI_MODE=aio_e2e AIO_SHARD=1
5960
- CI_MODE=bazel
@@ -63,6 +64,7 @@ matrix:
6364
allow_failures:
6465
- env: "CI_MODE=saucelabs_optional"
6566
- env: "CI_MODE=browserstack_optional"
67+
- env: "CI_MODE=aio_optional"
6668

6769
before_install:
6870
# source the env.sh script so that the exported variables are available to other scripts later on

scripts/ci/install.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ travisFoldStart "bower-install"
4747
travisFoldEnd "bower-install"
4848

4949

50-
if [[ ${TRAVIS} && (${CI_MODE} == "aio" || ${CI_MODE} == "aio_e2e" || ${CI_MODE} == "aio_tools_test") ]]; then
50+
if [[ ${TRAVIS} &&
51+
${CI_MODE} == "aio" ||
52+
${CI_MODE} == "aio_e2e" ||
53+
${CI_MODE} == "aio_tools_test" ||
54+
${CI_MODE} == "aio_optional"
55+
]]; then
5156
# angular.io: Install all yarn dependencies according to angular.io/yarn.lock
5257
travisFoldStart "yarn-install.aio"
5358
(
@@ -74,7 +79,14 @@ fi
7479

7580

7681
# Install Chromium
77-
if [[ ${TRAVIS} && ${CI_MODE} == "js" || ${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} == "aio" || ${CI_MODE} == "aio_e2e" ]]; then
82+
if [[ ${TRAVIS} &&
83+
${CI_MODE} == "js" ||
84+
${CI_MODE} == "e2e" ||
85+
${CI_MODE} == "e2e_2" ||
86+
${CI_MODE} == "aio" ||
87+
${CI_MODE} == "aio_e2e" ||
88+
${CI_MODE} == "aio_optional"
89+
]]; then
7890
travisFoldStart "install-chromium"
7991
(
8092
${thisDir}/install-chromium.sh

scripts/ci/test-aio-optional.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
set -u -e -o pipefail
4+
5+
# Setup environment
6+
readonly thisDir=$(cd $(dirname $0); pwd)
7+
source ${thisDir}/_travis-fold.sh
8+
9+
# run in subshell to avoid polluting cwd
10+
(
11+
cd ${PROJECT_ROOT}/aio
12+
# Run e2e tests
13+
travisFoldStart "test.aio.e2e"
14+
yarn setup
15+
yarn e2e
16+
travisFoldEnd "test.aio.e2e"
17+
18+
)

scripts/ci/test-aio.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ source ${thisDir}/_travis-fold.sh
3131
travisFoldEnd "test.aio.unit"
3232

3333

34-
# Run e2e tests
35-
travisFoldStart "test.aio.e2e"
36-
yarn e2e
37-
travisFoldEnd "test.aio.e2e"
38-
39-
4034
# Run unit tests for aio/aio-builds-setup
4135
travisFoldStart "test.aio.aio-builds-setup"
4236
./aio-builds-setup/scripts/test.sh

scripts/ci/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ case ${CI_MODE} in
4646
aio_e2e)
4747
${thisDir}/test-aio-e2e.sh
4848
;;
49+
aio_optional)
50+
${thisDir}/test-aio-optional.sh
51+
;;
4952
bazel)
5053
${thisDir}/test-bazel.sh
5154
;;

0 commit comments

Comments
 (0)