mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +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 PATH=$SONAR_SCANNER_HOME/bin:$PATH
|
||||||
export SONAR_SCANNER_OPTS="-server"
|
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
|
# See sonar-project.properties for additional settings
|
||||||
echo "--- running sonarscanner"
|
echo "--- running sonarscanner"
|
||||||
sonar-scanner \
|
sonar-scanner \
|
||||||
|
|
Loading…
Reference in a new issue