
committed by
Miško Hevery

parent
9f66c9c1d1
commit
bfd5f27525
@ -41,7 +41,7 @@ travisFoldStart "npm-install"
|
||||
travisFoldEnd "npm-install"
|
||||
|
||||
|
||||
if [[ ${TRAVIS} && (${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} == "aio" || ${CI_MODE} == "docs_test") ]]; then
|
||||
if [[ ${TRAVIS} && (${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} == "aio" || ${CI_MODE} == "aio_e2e" || ${CI_MODE} == "docs_test") ]]; then
|
||||
# Install version of yarn that we are locked against
|
||||
travisFoldStart "install-yarn"
|
||||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "${YARN_VERSION}"
|
||||
@ -49,7 +49,7 @@ if [[ ${TRAVIS} && (${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} =
|
||||
fi
|
||||
|
||||
|
||||
if [[ ${TRAVIS} && (${CI_MODE} == "aio" || ${CI_MODE} == "docs_test") ]]; then
|
||||
if [[ ${TRAVIS} && (${CI_MODE} == "aio" || ${CI_MODE} == "aio_e2e" || ${CI_MODE} == "docs_test") ]]; then
|
||||
# angular.io: Install all yarn dependencies according to angular.io/yarn.lock
|
||||
travisFoldStart "yarn-install.aio"
|
||||
(
|
||||
@ -61,7 +61,7 @@ fi
|
||||
|
||||
|
||||
# Install Chromium
|
||||
if [[ ${CI_MODE} == "js" || ${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} == "aio" ]]; then
|
||||
if [[ ${CI_MODE} == "js" || ${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} == "aio" || ${CI_MODE} == "aio_e2e" ]]; then
|
||||
travisFoldStart "install-chromium"
|
||||
(
|
||||
${thisDir}/install-chromium.sh
|
||||
|
25
scripts/ci/test-aio-e2e.sh
Executable file
25
scripts/ci/test-aio-e2e.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/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
|
||||
|
||||
# Start xvfb for local Chrome used for testing
|
||||
if [[ ${TRAVIS} ]]; then
|
||||
travisFoldStart "test.aio.xvfb-start"
|
||||
sh -e /etc/init.d/xvfb start
|
||||
travisFoldEnd "test.aio.xvfb-start"
|
||||
fi
|
||||
|
||||
# Run example e2e tests
|
||||
travisFoldStart "test.aio.example-e2e"
|
||||
yarn example-e2e -- --setup
|
||||
travisFoldEnd "test.aio.example-e2e"
|
||||
)
|
@ -37,13 +37,11 @@ source ${thisDir}/_travis-fold.sh
|
||||
yarn e2e
|
||||
travisFoldEnd "test.aio.e2e"
|
||||
|
||||
|
||||
# Run PWA-score tests
|
||||
travisFoldStart "test.aio.pwaScore"
|
||||
yarn test-pwa-score-local
|
||||
travisFoldEnd "test.aio.pwaScore"
|
||||
|
||||
|
||||
# Run unit tests for aio/aio-builds-setup
|
||||
travisFoldStart "test.aio.aio-builds-setup"
|
||||
./aio-builds-setup/scripts/test.sh
|
||||
|
@ -43,4 +43,7 @@ case ${CI_MODE} in
|
||||
aio)
|
||||
${thisDir}/test-aio.sh
|
||||
;;
|
||||
aio_e2e)
|
||||
${thisDir}/test-aio-e2e.sh
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user