-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
66 lines (56 loc) · 2.28 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
59
60
61
62
63
64
65
66
version: '{build}'
clone_depth: 50
environment:
JRE6_HOME: $(ProgramFiles)\Java\jdk1.6.0\jre
matrix:
- platform: x86
JAVA_HOME: ${ProgramFiles(x86)}\Java\jdk1.6.0
ANT_VERSION: 1.9.9
- platform: x86
JAVA_HOME: ${ProgramFiles(x86)}\Java\jdk1.7.0
ANT_VERSION: 1.9.9
- platform: x86
JAVA_HOME: ${ProgramFiles(x86)}\Java\jdk1.8.0
ANT_VERSION: 1.10.1
- platform: x64
JAVA_HOME: $(ProgramFiles)\Java\jdk1.6.0
ANT_VERSION: 1.9.9
- platform: x64
JAVA_HOME: $(ProgramFiles)\Java\jdk1.7.0
ANT_VERSION: 1.9.9
- platform: x64
JAVA_HOME: $(ProgramFiles)\Java\jdk1.8.0
ANT_VERSION: 1.10.1
VT_API_URL: https://www.virustotal.com/vtapi/v2/file/scan
VT_API_DELAY: 15
VT_API_KEY:
secure: 3sqJDjLAS708tR/LiAqKLZTnLLrhGJuWVzzI4nCjLbUUsZB+PPRG3y0BWWnMo14CDhBT4v6yjHTA23RdopoHDWJlBcGhKELKZOLhHsnJLU8=
- platform: x64
JAVA_HOME: $(ProgramFiles)\Java\jdk9
ANT_VERSION: 1.10.1
cache:
- $(ChocolateyInstall)\lib\ant -> .appveyor.yml
install:
- ps: If (!(Test-Path -Path ($env:ChocolateyInstall + '\lib\ant\apache-ant-' + $env:ANT_VERSION))) { cinst ant -i --version $env:ANT_VERSION }
- cmd: PATH %ChocolateyInstall%\lib\ant\apache-ant-%ANT_VERSION%\bin;%JAVA_HOME%\bin;%PATH%
before_build:
- java -Xmx32m -version
- javac -J-Xmx32m -version
- ant -diagnostics
build_script:
- ant all
after_build:
- ps: If ($env:APPVEYOR_REPO_TAG -eq 'true' -and $env:JAVA_HOME -eq ($env:ProgramFiles + '\Java\jdk1.8.0')) { $env:ARTIFACTS_PATH = 'target\*.*' }
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" IF DEFINED VT_API_KEY FOR /R target %%i IN (*.exe) DO IF "%%~xi" == ".exe" ECHO %%i & curl -v -F "file=@%%i" -F apikey=%VT_API_KEY% %VT_API_URL% & TIMEOUT %VT_API_DELAY% /NOBREAK
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" IF DEFINED VT_API_KEY FOR /R target %%i IN (*.tar.gz) DO ECHO %%i & curl -v -F "file=@%%i" -F apikey=%VT_API_KEY% %VT_API_URL% & TIMEOUT %VT_API_DELAY% /NOBREAK
artifacts:
- path: $(ARTIFACTS_PATH)
type: file
deploy:
description: 'Autogenerated'
provider: GitHub
auth_token:
secure: iraKgcF8ghXlZsLu+cIcsqqxeNTyeuCkLCtXA+SkOKrVFyGp+djEDD0ga3O8AHRb
draft: true
on:
appveyor_repo_tag: true