#6750 Moved env's
This commit is contained in:
parent
a5b55eb7df
commit
444cbf10d5
1 changed files with 9 additions and 8 deletions
17
.github/workflows/job-sonarcloud.yml
vendored
17
.github/workflows/job-sonarcloud.yml
vendored
|
|
@ -11,7 +11,12 @@ jobs:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: symless/synergy-core:debian10
|
container: symless/synergy-core:debian10
|
||||||
|
|
||||||
|
env:
|
||||||
|
SONAR_SCANNER_VERSION: 4.4.0.2170
|
||||||
|
SONAR_SCANNER_HOME: "~/sonar/sonar-scanner-${SONAR_SCANNER_VERSION}-linux"
|
||||||
|
SONAR_SCANNER_OPTS: "-server"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -26,7 +31,6 @@ jobs:
|
||||||
pip install gcovr
|
pip install gcovr
|
||||||
- name: Installing Sonar Scanner
|
- name: Installing Sonar Scanner
|
||||||
run: |
|
run: |
|
||||||
export SONAR_SCANNER_VERSION=4.4.0.2170
|
|
||||||
export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
|
export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
|
||||||
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/
|
||||||
|
|
@ -35,27 +39,24 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
|
curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
|
||||||
unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
|
unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
|
||||||
export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
|
export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
|
||||||
|
|
||||||
mkdir build-release
|
mkdir build-release
|
||||||
cd build-release
|
cd build-release
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_COVERAGE=ON ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_COVERAGE=ON ..
|
||||||
. ./version
|
. ./version
|
||||||
|
|
||||||
build-wrapper-linux-x86-64 --out-dir bw-output make -j
|
build-wrapper-linux-x86-64 --out-dir bw-output make -j
|
||||||
|
|
||||||
./bin/unittests
|
- name: Running coverage
|
||||||
echo "hmm"
|
run: |
|
||||||
|
cd build-release
|
||||||
make coverage
|
make coverage
|
||||||
|
|
||||||
- name: Run Sonar
|
- name: Run Sonar
|
||||||
run: |
|
run: |
|
||||||
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
|
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
|
||||||
export SONAR_SCANNER_OPTS="-server"
|
|
||||||
cd build-release
|
cd build-release
|
||||||
sonar-scanner \
|
sonar-scanner \
|
||||||
-Dsonar.organization=symless \
|
-Dsonar.organization=symless \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue