add script to create annotation report for feature toggles (#20970)

This commit is contained in:
Stu Young
2019-08-16 13:36:44 -04:00
committed by Michael Youngstrom
parent 658cd5c62e
commit d66655ae8a

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# generate-feature-toggle-annotation-report.sh
# Generate a code annotations report for feature toggles in the platform.
# This script is part of the feature toggle generator tool.
pip install -r requirements/edx/paver.txt -r requirements/edx/testing.txt
rm -Rf reports/*
code_annotations static_find_annotations --config_file=../$CODE_ANNOTATION_CONFIG_PATH --no_lint
mkdir -p ../$CODE_ANNOTATION_OUTPUT_PATH
cp reports/* ../$CODE_ANNOTATION_OUTPUT_PATH/lms-annotations.yml