Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47250ff
commit 5361232
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
#==============================================================================# | ||
# SETUP # | ||
#==============================================================================# | ||
|
||
# Start in scripts/integration-tests/ even if run from root directory | ||
cd "$(dirname "$0")" || exit | ||
|
||
source utils/local-registry.sh | ||
source utils/cleanup.sh | ||
|
||
# Echo every command being executed | ||
set -x | ||
|
||
# Clone jest | ||
git clone --depth=1 https://github.com/facebook/jest tmp/jest | ||
cd tmp/jest || exit | ||
|
||
# Update @babel/* dependencies | ||
bump_deps="$PWD/../../utils/bump-babel-dependencies.js" | ||
node "$bump_deps" | ||
for d in ./packages/*/ | ||
do | ||
(cd "$d"; node "$bump_deps") | ||
done | ||
|
||
#==============================================================================# | ||
# ENVIRONMENT # | ||
#==============================================================================# | ||
node -v | ||
yarn --version | ||
python --version | ||
|
||
#==============================================================================# | ||
# TEST # | ||
#==============================================================================# | ||
|
||
startLocalRegistry "$PWD"/../../verdaccio-config.yml | ||
yarn install | ||
yarn build | ||
|
||
# Test | ||
CI=true yarn test | ||
|
||
cleanup |