Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing: Add verification for Create Block to Continues Integration #23195

Merged
merged 7 commits into from
Jun 17, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cleanup esnext-test directory after script is finished
  • Loading branch information
ocean90 committed Jun 17, 2020
commit 041ab1d14ffe052c127b56682862c524afa2eb43
9 changes: 8 additions & 1 deletion bin/test-create-block.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@
# Exit if any command fails.
set -e

DIRECTORY="$PWD"

status () {
echo -e "\n\033[1;34m$1\033[0m\n"
}

cleanup() {
rm -rf "$DIRECTORY/esnext-test"
}

trap cleanup EXIT

status "Scaffolding block..."
rm -rf esnext-test
npx wp-create-block esnext-test --no-wp-scripts
cd esnext-test

Expand Down