mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
Delete vendor (installed gems) dir before running sonarscanner
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
2db8b80bb3
commit
d9e11b0d86
1 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,12 @@ if [ -n "${CI_ENABLE_COVERAGE:-}" ]; then
|
|||
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
|
||||
export SONAR_SCANNER_OPTS="-server"
|
||||
|
||||
# Delete the vendor/ directory. I've tried to exclude it using sonar.exclusions,
|
||||
# but that appears to get ignored, and we end up analyzing the gemfile install
|
||||
# which blows our analysis.
|
||||
echo "--- deleting installed gems"
|
||||
rm -rf vendor/
|
||||
|
||||
# See sonar-project.properties for additional settings
|
||||
echo "--- running sonarscanner"
|
||||
sonar-scanner \
|
||||
|
|
Loading…
Add table
Reference in a new issue