Add sample pre-commit hook (#2470)
Using pre-commit hooks helps us to decrease CI load and improve developers' experience.
This commit is contained in:
15
ci/setup.sh
Executable file
15
ci/setup.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2023 Amazon.com Inc. or its affiliates. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
# This script executes some commands to make your onboarding with WAMR easier.
|
||||
# For example, setting pre-commit hook that will make your code complaint with the
|
||||
# code style requirements checked in WAMR CI
|
||||
|
||||
echo "Copy the pre-commit hook to your hooks folder"
|
||||
cp pre_commit_hook_sample ../.git/hooks/pre-commit
|
||||
|
||||
# Feel free to propose your commands to this script to make developing WAMR easier
|
||||
|
||||
echo "Setup is done"
|
||||
Reference in New Issue
Block a user