-
Notifications
You must be signed in to change notification settings - Fork 159
/
appveyor.yml
47 lines (38 loc) · 1.49 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: '{build}'
os: Visual Studio 2017
platform: x64
install:
- ps: Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
- ps: Start-Sleep -s 10
- ps: Restart-Computer -Force
- ps: Start-Sleep -s 10
- 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.3.9/binaries/apache-maven-3.3.9-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.3.9\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET M2_HOME=C:\maven\apache-maven-3.3.9
- cmd: SET MAVEN_HOME=C:\maven\apache-maven-3.3.9
- cmd: COPY C:\maven\apache-maven-3.3.9\bin\mvn.cmd C:\maven\apache-maven-3.3.9\bin\mvn.bat
build_script:
- mvn -Prun-its
cache:
- C:\maven\
- C:\Users\appveyor\.m2
artifacts:
- path: target\it\**\build.log
name: ITSlogs
type: zip
on_failure:
- 7z a ITSlogs.zip target\it\**\build.log
- appveyor PushArtifact ITSlogs.zip
# enable the following lines to open an rdp session on finsih
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))