forked from mguessan/davmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
38 lines (36 loc) · 1.3 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
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\jdk11
- JAVA_HOME: C:\Program Files\Java\jdk15
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\ant\apache-ant-1.10.10" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://www-eu.apache.org/dist//ant/binaries/apache-ant-1.10.10-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.10\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%
- IF not "%JAVA_HOME%" == "C:\Program Files\Java\jdk1.8.0" echo remove artifacts && del /s /q dist
test: false
cache:
- C:\ant
artifacts:
- path: dist/*.zip
- path: dist/*.deb
- path: dist/*.tgz
- path: dist/davmail-*.exe