浏览代码

Update travis utils version for appveyor (#75)

tags/4.2.0.1873
Jacek 4 年前
父节点
当前提交
70da1689e8
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 1
    1
      appveyor.ps1
  2. 6
    1
      src/test/java/org/sonarsource/scanner/cli/ConfTest.java

+ 1
- 1
appveyor.ps1 查看文件

@@ -32,7 +32,7 @@ function FetchAndUnzip

function InstallAppveyorTools
{
$travisUtilsVersion = "33"
$travisUtilsVersion = "57"
$localPath = "$env:USERPROFILE\.local"
$travisUtilsPath = "$localPath\travis-utils-$travisUtilsVersion"
if (Test-Path $travisUtilsPath)

+ 6
- 1
src/test/java/org/sonarsource/scanner/cli/ConfTest.java 查看文件

@@ -33,6 +33,7 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.rules.TemporaryFolder;
import org.sonarsource.scanner.api.internal.shaded.minimaljson.Json;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assume.assumeTrue;
@@ -326,7 +327,11 @@ public class ConfTest {
Properties properties = conf.properties();
assertThat(properties.get("sonar.prop")).isEqualTo("default");

env.put("SONARQUBE_SCANNER_PARAMS", "{\"project.settings\" : \"" + home.resolve("conf/sq-project.properties").toAbsolutePath().toString() + "\"}");
String jsonString = Json.object()
.add("project.settings", home.resolve("conf/sq-project.properties").toAbsolutePath().toString())
.toString();

env.put("SONARQUBE_SCANNER_PARAMS", jsonString);

properties = conf.properties();
assertThat(properties.get("sonar.prop")).isEqualTo("expected");

正在加载...
取消
保存