mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
36 lines
1.1 KiB
Bash
Executable File
36 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#==============================================================================#
|
|
# SETUP #
|
|
#==============================================================================#
|
|
|
|
# Start in scripts/integration-tests/ even if run from root directory
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
dir="$PWD"
|
|
|
|
source utils/local-registry.sh
|
|
source utils/cleanup.sh
|
|
|
|
# Echo every command being executed
|
|
set -x
|
|
|
|
#==============================================================================#
|
|
# TEST #
|
|
#==============================================================================#
|
|
|
|
startLocalRegistry "$PWD"/verdaccio-config.yml
|
|
|
|
# Create and build a new angular project
|
|
mkdir tmp && cd tmp
|
|
npx -p @angular/cli ng new --defaults ngx --package-manager yarn --skip-git --skip-install
|
|
cd ngx
|
|
node "$dir"/utils/bump-babel-dependencies.js resolutions
|
|
touch yarn.lock
|
|
yarn set version stable
|
|
YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn
|
|
yarn run build
|
|
yarn run ng test --watch=false --browsers ChromeHeadless
|
|
|
|
cleanup
|