forked from mguessan/davmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
39 lines (37 loc) · 1.29 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
version: '{build}'
os: Windows Server 2012
environment:
ANT_HOME: C:\ant\apache-ant-1.10.7
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk9
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
- JAVA_HOME: C:\Program Files\Java\jdk10
- JAVA_HOME: C:\Program Files\Java\jdk11
- JAVA_HOME: C:\Program Files\Java\jdk12
- JAVA_HOME: C:\Program Files\Java\jdk13
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\ant\apache-ant-1.10.7" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://www-eu.apache.org/dist//ant/binaries/apache-ant-1.10.7-bin.zip',
'C:\ant-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\ant-bin.zip", "C:\ant")
}
- cmd: SET PATH=C:\ant\apache-ant-1.10.7\bin;%JAVA_HOME%\bin;%PATH%
- cmd: set ANT_OPTS=-Dfile.encoding=UTF-8
- cmd: java -version
- cmd: ant -version
- cmd: copy /y C:\projects\davmail\nsis\* "C:\Program Files (x86)\NSIS\Plugins\x86-ansi"
build_script:
- ant dist
- IF "%JAVA_HOME%" == "C:\Program Files\Java\jdk11" ant sonar -Dsonar.login=%SONAR_LOGIN%
test: false
cache:
- C:\ant
artifacts:
- path: dist/*.zip
- path: dist/*.deb
- path: dist/*.tgz
- path: dist/davmail-*.exe