-
Notifications
You must be signed in to change notification settings - Fork 48
/
appveyor.yml
58 lines (49 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
57
58
version: 3.8.{build}
branches:
only:
- master
os: MinGW
platform:
- x86
- x64
configuration:
- Debug
- Release
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
If(!(Test-Path -Path "C:\maven")) {
(new-object System.Net.WebClient).DownloadFile(
'http://www.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=-Xmx4g
- cmd: SET JAVA_OPTS=-Xmx4g
- ps: |
If($env:PLATFORM -ieq "x86") {
$env:PATH="C:\msys64\mingw32\bin;"+$env:path
$env:MSYSTEM="MINGW32"
$env:ANT_ARCH="x86"
} Else {
$env:PATH="C:\msys64\mingw64\bin;"+$env:path
$env:MSYSTEM="MINGW64"
$env:ANT_ARCH="amd64"
}
build_script:
- ps: |
if($env:CONFIGURATION -ne "Debug")
{ mvn clean install --batch-mode -DskipTest "-Dant.os.arch=$env:ANT_ARCH" }
else { mvn clean install --batch-mode -DskipTest "-Dant.os.arch=$env:ANT_ARCH" "-Dant.native.debug=true" }
test_script:
- mvn test --batch-mode "-Dant.os.arch=$env:ANT_ARCH"
artifacts:
- path: target\*.jar
name: Java archive (JAR)
- path: '**\*.dll'
name: Native library
cache:
- C:\maven
- C:\Users\appveyor\.m2