Federico Tomassetti | 6a7d138 | 2016-07-05 18:04:30 +0200 | [diff] [blame] | 1 | version: '{build}' |
| 2 | os: Windows Server 2012 |
| 3 | install: |
| 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 Tomassetti | 1174bfe | 2016-09-11 13:25:28 +0200 | [diff] [blame] | 16 | - cmd: SET M2_HOME=C:\maven\apache-maven-3.2.5 |
Federico Tomassetti | 6a7d138 | 2016-07-05 18:04:30 +0200 | [diff] [blame] | 17 | build_script: |
| 18 | - mvn clean package --batch-mode -DskipTest |
| 19 | test_script: |
| 20 | - mvn clean install --batch-mode |
| 21 | cache: |
| 22 | - C:\maven\ |
| 23 | - C:\Users\appveyor\.m2 |