Merge pull request #3275 from wing328/windows_ci

Add CI tests for Windows environment
This commit is contained in:
wing328
2016-07-04 23:58:02 +08:00
committed by GitHub
2 changed files with 25 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
# for CI with appveyor.yml
# Ref: http://www.yegor256.com/2015/01/10/windows-appveyor-maven.html
version: '{build}'
os: Windows Server 2012
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile(
'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip',
'C:\maven-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
build_script:
- mvn clean package --batch-mode -DskipTest
test_script:
- mvn clean install --batch-mode
cache:
- C:\maven\
- C:\Users\appveyor\.m2
+1 -1
View File
@@ -29,7 +29,7 @@
</developers>
<issueManagement>
<system>github</system>
<url>https://github.com/swagger-api/swagger-core/issues</url>
<url>https://github.com/swagger-api/swagger-codegen/issues</url>
</issueManagement>
<mailingLists>
<mailingList>