Skip to content

Commit a82ed65

Browse files
committed
Added appveyor
1 parent 587a0aa commit a82ed65

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

appveyor.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: '{build}'
2+
skip_tags: true
3+
clone_depth: 5
4+
environment:
5+
MAVEN_VERSION: 3.6.0
6+
matrix:
7+
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
8+
install:
9+
- ps: |
10+
Add-Type -AssemblyName System.IO.Compression.FileSystem
11+
if (!(Test-Path -Path "C:\maven" )) {
12+
Write-Host "Downloading Maven $env:MAVEN_VERSION"
13+
(new-object System.Net.WebClient).DownloadFile("https://repo1.maven.org/maven2/org/apache/maven/apache-maven/$env:MAVEN_VERSION/apache-maven-$env:MAVEN_VERSION-bin.zip", 'C:\maven-bin.zip')
14+
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
15+
}
16+
- cmd: SET M2_HOME=C:\maven\apache-maven-%MAVEN_VERSION%
17+
- cmd: SET PATH=%M2_HOME%\bin;%JAVA_HOME%\bin;%PATH%;
18+
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=1g -Xmx2g
19+
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=1g -Xmx2g
20+
- cmd: mvn --version
21+
- cmd: java -version
22+
build_script:
23+
- mvn -B -V -Prun-its clean verify -pl httpsnippet
24+
cache:
25+
- C:\maven\ -> appveyor.yml
26+
- C:\Users\appveyor\.m2\ -> pom.xml

httpsnippet/src/main/java/io/github/atkawa7/httpsnippet/generators/clojure/CljHttp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected String generateCode(CodeRequest codeRequest) throws Exception {
9797

9898
map.forEach((k, v) -> lowercaseMap.put(k.toLowerCase(), v));
9999

100-
if (map.size() > 0) {
100+
if (lowercaseMap.size() > 0) {
101101
body.put("headers", lowercaseMap);
102102
}
103103
}

httpsnippet/src/main/java/io/github/atkawa7/httpsnippet/generators/java/Jsoup.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ protected String generateCode(CodeRequest codeRequest) throws Exception {
3636
codeRequest
3737
.allHeadersAsMap()
3838
.forEach(
39-
(k, v) -> {
40-
code.push(1, ".header(\"%s\", \"%s\")", k, v);
41-
});
39+
(k, v) -> code.push(1, ".header(\"%s\", \"%s\")", k, v));
4240
}
4341

4442
if (codeRequest.hasText()) {

0 commit comments

Comments
 (0)