]> source.dussan.org Git - sonarqube.git/blob
c0e950fa6476c5a869dffcf026cbc32efeb638bf
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`can choose build tools and copy provided settings: cfamily linux: execute build wrapper 1`] = `
4 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip
5 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
6 export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
7 "
8 `;
9
10 exports[`can choose build tools and copy provided settings: cfamily linux: execute scanner 1`] = `
11 "export SONAR_SCANNER_VERSION=4.7.0.2747
12 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
13 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
14 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
15 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
16 export SONAR_SCANNER_OPTS="-server"
17 "
18 `;
19
20 exports[`can choose build tools and copy provided settings: cfamily macos: execute build wrapper 1`] = `
21 "curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
22 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
23 export PATH=$HOME/.sonar/build-wrapper-macosx-x86:$PATH
24 "
25 `;
26
27 exports[`can choose build tools and copy provided settings: cfamily macos: execute scanner 1`] = `
28 "export SONAR_SCANNER_VERSION=4.7.0.2747
29 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
30 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx.zip
31 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
32 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
33 export SONAR_SCANNER_OPTS="-server"
34 "
35 `;
36
37 exports[`can choose build tools and copy provided settings: cfamily windows: execute build wrapper 1`] = `
38 "$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
39 rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
40 New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
41 (New-Object System.Net.WebClient).DownloadFile("http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
42 Add-Type -AssemblyName System.IO.Compression.FileSystem
43 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
44 $env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
45 "
46 `;
47
48 exports[`can choose build tools and copy provided settings: cfamily windows: execute scanner 1`] = `
49 "$env:SONAR_SCANNER_VERSION = "4.7.0.2747"
50 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
51 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
52 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
53 New-Item -path $env:SONAR_SCANNER_HOME -type directory
54 (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
55 Add-Type -AssemblyName System.IO.Compression.FileSystem
56 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
57 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
58 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
59 $env:SONAR_SCANNER_OPTS="-server"
60 "
61 `;
62
63 exports[`can choose build tools and copy provided settings: dotnet core: execute command 1 1`] = `"dotnet sonarscanner begin /k:"my-project" /d:sonar.host.url="http://localhost:9000"  /d:sonar.token="generatedtoken2""`;
64
65 exports[`can choose build tools and copy provided settings: dotnet core: execute command 2 1`] = `"dotnet build"`;
66
67 exports[`can choose build tools and copy provided settings: dotnet core: execute command 3 1`] = `"dotnet sonarscanner end /d:sonar.token="generatedtoken2""`;
68
69 exports[`can choose build tools and copy provided settings: dotnet core: install scanner globally 1`] = `"dotnet tool install --global dotnet-sonarscanner"`;
70
71 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 1 1`] = `"SonarScanner.MSBuild.exe begin /k:"my-project" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="generatedtoken2""`;
72
73 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 2 1`] = `"MsBuild.exe /t:Rebuild"`;
74
75 exports[`can choose build tools and copy provided settings: dotnet framework: execute command 3 1`] = `"SonarScanner.MSBuild.exe end /d:sonar.token="generatedtoken2""`;
76
77 exports[`can choose build tools and copy provided settings: gradle: execute scanner 1`] = `
78 "./gradlew sonar \\
79   -Dsonar.projectKey=my-project \\
80   -Dsonar.projectName='MyProject' \\
81   -Dsonar.host.url=http://localhost:9000 \\
82   -Dsonar.token=generatedtoken2"
83 `;
84
85 exports[`can choose build tools and copy provided settings: gradle: sonarqube plugin 1`] = `
86 "plugins {
87   id "org.sonarqube" version "4.2.1.3168"
88 }"
89 `;
90
91 exports[`can choose build tools and copy provided settings: maven: execute scanner 1`] = `
92 "mvn clean verify sonar:sonar \\
93   -Dsonar.projectKey=my-project \\
94   -Dsonar.projectName='MyProject' \\
95   -Dsonar.host.url=http://localhost:9000 \\
96   -Dsonar.token=generatedtoken2"
97 `;
98
99 exports[`can choose build tools and copy provided settings: other linux: execute scanner 1`] = `
100 "export SONAR_SCANNER_VERSION=4.7.0.2747
101 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
102 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
103 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
104 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
105 export SONAR_SCANNER_OPTS="-server"
106 "
107 `;
108
109 exports[`can choose build tools and copy provided settings: other macos: execute scanner 1`] = `
110 "export SONAR_SCANNER_VERSION=4.7.0.2747
111 export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-macosx
112 curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx.zip
113 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
114 export PATH=$SONAR_SCANNER_HOME/bin:$PATH
115 export SONAR_SCANNER_OPTS="-server"
116 "
117 `;
118
119 exports[`can choose build tools and copy provided settings: other windows: execute scanner 1`] = `
120 "$env:SONAR_SCANNER_VERSION = "4.7.0.2747"
121 $env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
122 $env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
123 rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
124 New-Item -path $env:SONAR_SCANNER_HOME -type directory
125 (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
126 Add-Type -AssemblyName System.IO.Compression.FileSystem
127 [System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
128 rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
129 $env:Path += ";$env:SONAR_SCANNER_HOME/bin"
130 $env:SONAR_SCANNER_OPTS="-server"
131 "
132 `;