File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : ' {build}'
2
+ skip_tags : true
3
+ environment :
4
+ MAVEN_VERSION : 3.5.0
5
+ matrix :
6
+ - JAVA_HOME : C:\Program Files\Java\jdk1.8.0
7
+ install :
8
+ - ps : |
9
+ Add-Type -AssemblyName System.IO.Compression.FileSystem
10
+ if (!(Test-Path -Path "C:\maven" )) {
11
+ Write-Host "Downloading Maven $env:MAVEN_VERSION"
12
+ (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')
13
+ [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
14
+ }
15
+ - cmd : SET M2_HOME=C:\maven\apache-maven-%MAVEN_VERSION%
16
+ # Prepend Java entry, remove Ruby entry (C:\Ruby193\bin;) from PATH
17
+ - cmd : SET PATH=%M2_HOME%\bin;%JAVA_HOME%\bin;%PATH:C:\Ruby193\bin;=%;
18
+ - cmd : mvn --version
19
+ - cmd : java -version
20
+ build_script :
21
+ - mvn -B -V -Prun-its clean verify
22
+ cache :
23
+ - C:\maven\ -> appveyor.yml
24
+ - C:\Users\appveyor\.m2\ -> pom.xml
You can’t perform that action at this time.
0 commit comments