forked from TencentBlueKing/bk-nodeman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: 插件包导入命令支持指定标签 (closed TencentBlueKing#1922)
- Loading branch information
1 parent
5439253
commit 00dc97a
Showing
5 changed files
with
124 additions
and
2 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
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
Empty file.
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,23 @@ | ||
#!/bin/bash | ||
|
||
python manage.py makemigrations --check --dry-run | ||
|
||
|
||
if [[ $? -ne 0 ]]; | ||
then | ||
echo "Migrations 检测未通过!" | ||
exit 1 | ||
else | ||
echo "单元测试已通过" | ||
fi | ||
|
||
|
||
python manage.py migrate | ||
|
||
if [[ $? -ne 0 ]]; | ||
then | ||
echo "Migrate 检测未通过!" | ||
exit 1 | ||
else | ||
echo "单元测试已通过" | ||
fi |