add:stage
This commit is contained in:
@@ -6,10 +6,10 @@ db:
|
||||
flask init-db
|
||||
|
||||
run:
|
||||
python run_api_tests.py --base-url http://127.0.0.1:4523/m1/6389742-6086420-default --yapi assets/doc/井筒API示例_simple.json --custom-test-cases-dir ./custom_testcases --verbose --output test_report.json >log.txt 2>&1
|
||||
python3 run_api_tests.py --base-url http://127.0.0.1:4523/m1/6389742-6086420-default --yapi assets/doc/井筒API示例_simple.json --custom-test-cases-dir ./custom_testcases --verbose --output test_report.json >log.txt 2>&1
|
||||
|
||||
run_stages:
|
||||
python run_api_tests.py \
|
||||
python3 run_api_tests.py \
|
||||
--base-url http://127.0.0.1:4523/m1/6389742-6086420-default \
|
||||
--yapi ./assets/doc/井筒API示例_simple.json \
|
||||
--stages-dir ./custom_stages \
|
||||
@@ -17,6 +17,15 @@ run_stages:
|
||||
-v \
|
||||
-o ./test_reports/ >log_stage.txt 2>&1
|
||||
|
||||
run_dms:
|
||||
/opt/anaconda3/envs/py312/bin/python run_api_tests.py \
|
||||
--base-url http://127.0.0.1:5001/ \
|
||||
--dms ./assets/doc/dms/domain.json \
|
||||
--stages-dir ./custom_stages \
|
||||
--custom-test-cases-dir ./custom_testcases \
|
||||
-v \
|
||||
-o ./test_reports/ >log_dms.txt 2>&1
|
||||
|
||||
# 构建Docker镜像,只需要在依赖变化时执行一次
|
||||
build_docker_image:
|
||||
docker build -t compliance-builder:latest .
|
||||
@@ -41,4 +50,6 @@ docker_build_redhat:
|
||||
# dnf install -y python39 python39-pip python39-devel binutils gcc make && \
|
||||
# pip3 install --no-cache-dir -r requirements.txt || true && \
|
||||
# pip3 install --no-cache-dir pyinstaller && \
|
||||
# pyinstaller --onefile --noconfirm flask_app.py "
|
||||
# pyinstaller --onefile --noconfirm flask_app.py "
|
||||
history_viewer:
|
||||
docker run --platform linux/amd64 --rm -v "$(pwd)":/app -w /app registry.access.redhat.com/ubi8/python-39 sh -c "pip3 install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple || true && pip3 install --no-cache-dir pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple && pyinstaller --onefile --noconfirm history_viewer.py -n history_viewer_nologin"
|
||||
Reference in New Issue
Block a user