#6750 Moving home to steps
This commit is contained in:
parent
06971a69e0
commit
555ee4a635
1 changed files with 2 additions and 5 deletions
7
.github/workflows/job-sonarcloud.yml
vendored
7
.github/workflows/job-sonarcloud.yml
vendored
|
|
@ -14,7 +14,6 @@ jobs:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SONAR_SCANNER_VERSION: 4.4.0.2170
|
SONAR_SCANNER_VERSION: 4.4.0.2170
|
||||||
SONAR_SCANNER_HOME: $HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
|
|
||||||
SONAR_SCANNER_OPTS: -server
|
SONAR_SCANNER_OPTS: -server
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -31,9 +30,7 @@ jobs:
|
||||||
pip install gcovr
|
pip install gcovr
|
||||||
- name: Installing Sonar Scanner
|
- name: Installing Sonar Scanner
|
||||||
run: |
|
run: |
|
||||||
echo ${SONAR_SCANNER_HOME}
|
export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-4.4.0.2170-linux
|
||||||
echo $SONAR_SCANNER_HOME
|
|
||||||
echo $SONAR_SCANNER_HOME/bin:$PATH
|
|
||||||
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
|
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
|
||||||
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
|
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
|
||||||
|
|
||||||
|
|
@ -58,7 +55,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run Sonar
|
- name: Run Sonar
|
||||||
run: |
|
run: |
|
||||||
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
|
export PATH=$HOME/.sonar/sonar-scanner-${SONAR_SCANNER_VERSION}-linux/bin:$PATH
|
||||||
cd build-release
|
cd build-release
|
||||||
sonar-scanner \
|
sonar-scanner \
|
||||||
-Dsonar.organization=symless \
|
-Dsonar.organization=symless \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue