mirror of
https://github.com/outbackdingo/parodus.git
synced 2026-01-27 18:20:04 +00:00
25 lines
842 B
Bash
Executable File
25 lines
842 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-FileCopyrightText: 2021 Comcast Cable Communications Management, LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
curl -s -L -O https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
|
|
unzip -q -o build-wrapper-linux-x86.zip
|
|
|
|
|
|
SONAR_VERSION=`curl -s https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/ |grep -o "sonar-scanner-cli-[0-9.]*-linux.zip"|sort -r|uniq|head -n 1`
|
|
curl -s -L -O https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/$SONAR_VERSION
|
|
curl -s -L -O https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/$SONAR_VERSION.sha256
|
|
echo " $SONAR_VERSION" >> $SONAR_VERSION.sha256
|
|
sha256sum -c $SONAR_VERSION.sha256
|
|
if [[ $? -ne 0 ]]
|
|
then
|
|
exit 1
|
|
fi
|
|
unzip -q $SONAR_VERSION
|
|
|
|
output=`ls | grep -o "sonar-scanner-[0-9.]*-linux"`
|
|
|
|
echo "Using $output"
|
|
|
|
mv $output sonar-scanner
|