blob: f881bfcace1c03087f96bf3cdc8ad3254624d225 [file] [log] [blame]
Federico Tomassetti6a7d1382016-07-05 18:04:30 +02001version: '{build}'
2os: Windows Server 2012
3install:
4 - ps: |
5 Add-Type -AssemblyName System.IO.Compression.FileSystem
6 if (!(Test-Path -Path "C:\maven" )) {
7 (new-object System.Net.WebClient).DownloadFile(
8 'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip',
9 'C:\maven-bin.zip'
10 )
11 [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
12 }
13 - cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;%JAVA_HOME%\bin;%PATH%
14 - cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
15 - cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
Federico Tomassetti1174bfe2016-09-11 13:25:28 +020016 - cmd: SET M2_HOME=C:\maven\apache-maven-3.2.5
Federico Tomassetti6a7d1382016-07-05 18:04:30 +020017build_script:
18 - mvn clean package --batch-mode -DskipTest
19test_script:
20 - mvn clean install --batch-mode
21cache:
22 - C:\maven\
23 - C:\Users\appveyor\.m2