chore: refine e2e test scripts (#10918)
This commit is contained in:
parent
a18166d2a9
commit
875e9619b7
@ -5,7 +5,7 @@
|
|||||||
#==============================================================================#
|
#==============================================================================#
|
||||||
|
|
||||||
# Start in scripts/integration-tests/ even if run from root directory
|
# Start in scripts/integration-tests/ even if run from root directory
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")" || exit
|
||||||
|
|
||||||
source utils/local-registry.sh
|
source utils/local-registry.sh
|
||||||
source utils/cleanup.sh
|
source utils/cleanup.sh
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#==============================================================================#
|
#==============================================================================#
|
||||||
|
|
||||||
# Start in scripts/integration-tests/ even if run from root directory
|
# Start in scripts/integration-tests/ even if run from root directory
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")" || exit
|
||||||
|
|
||||||
source utils/local-registry.sh
|
source utils/local-registry.sh
|
||||||
source utils/cleanup.sh
|
source utils/cleanup.sh
|
||||||
@ -14,8 +14,8 @@ source utils/cleanup.sh
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
# Clone create-react-app
|
# Clone create-react-app
|
||||||
git clone https://github.com/facebook/create-react-app.git tmp/create-react-app
|
git clone --depth=1 https://github.com/facebook/create-react-app.git tmp/create-react-app
|
||||||
cd tmp/create-react-app
|
cd tmp/create-react-app || exit
|
||||||
|
|
||||||
#==============================================================================#
|
#==============================================================================#
|
||||||
# TEST #
|
# TEST #
|
||||||
@ -25,7 +25,7 @@ startLocalRegistry "$PWD"/../../verdaccio-config.yml
|
|||||||
yarn install
|
yarn install
|
||||||
# "yarn upgrade --scope @babel --latest" doesn't seem to work.
|
# "yarn upgrade --scope @babel --latest" doesn't seem to work.
|
||||||
# a means "all", while \n is the enter needed to confirm the selection.
|
# a means "all", while \n is the enter needed to confirm the selection.
|
||||||
echo "a\n" | yarn upgrade-interactive --scope @babel --latest
|
printf "a\n" | yarn upgrade-interactive --scope @babel --latest
|
||||||
|
|
||||||
# Test
|
# Test
|
||||||
CI=true yarn test
|
CI=true yarn test
|
||||||
|
|||||||
@ -15,7 +15,7 @@ function publishESLintPkg {
|
|||||||
cd eslint/$1
|
cd eslint/$1
|
||||||
yarn version --patch --no-git-tag-version
|
yarn version --patch --no-git-tag-version
|
||||||
cd ../..
|
cd ../..
|
||||||
make publish-eslint PKG=$1
|
make -j publish-eslint PKG=$1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Echo every command being executed
|
# Echo every command being executed
|
||||||
@ -30,7 +30,7 @@ initializeE2Egit
|
|||||||
# PUBLISH #
|
# PUBLISH #
|
||||||
#==============================================================================#
|
#==============================================================================#
|
||||||
|
|
||||||
make bootstrap-only
|
make -j bootstrap-only
|
||||||
|
|
||||||
startLocalRegistry "$PWD"/scripts/integration-tests/verdaccio-config.yml
|
startLocalRegistry "$PWD"/scripts/integration-tests/verdaccio-config.yml
|
||||||
loginLocalRegistry
|
loginLocalRegistry
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user