forked from validator/validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
71 lines (60 loc) · 2.15 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
67
68
69
70
71
version: "{build}"
clone_depth: 5
skip_tags: true
branches:
except:
- /^(osx|linux|jar|windows)$/
environment:
ssh_secret:
secure: rSGxPYhT1WpkysdoBRSgj65HwEu3ULsFCfOoP7zJ/YbaVihhK8RfjaHcHQi50JH0
PYTHON: C:\Python36-x64
CHECKER_PY: .\checker.py
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
- JAVA_HOME: C:\Program Files\Java\jdk11
- JAVA_HOME: C:\Program Files\Java\jdk12
- JAVA_HOME: C:\Program Files\Java\jdk13
install:
- set PATH=%PYTHON%;%PYTHON%\Scripts;%JAVA_HOME%\bin;%PATH%
- java -version
- python --version
- python %CHECKER_PY% update
- appveyor-retry python %CHECKER_PY% dldeps
build_script:
- python %CHECKER_PY% build
test_script:
- python %CHECKER_PY% jar
- java -jar .\build\dist\vnu.jar .\build\dist\index.html
- java -jar .\build\dist\vnu.jar .\site\nu-about.html
- python %CHECKER_PY% runtime-image
- python %CHECKER_PY% war
- python %CHECKER_PY% check
- python %CHECKER_PY% test
cache:
# cache the dependencies folder, and invalidate the cache
# if any of the files right of the arrow change
- 'dependencies -> .appveyor.yml,%CHECKER_PY%,build\build.py,build\build.xml'
before_deploy:
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
- cmd: appveyor-tools\secure-file -decrypt resources\ssh_appveyor.enc -out resources\ssh_appveyor -secret %ssh_secret%
- chmod 600 resources\ssh_appveyor
- cat resources\ssh_known_hosts >> %userprofile%\.ssh\known_hosts
- chmod 600 %userprofile%\.ssh\known_hosts
- git config --local user.name "AppVeyor"
- git config --local user.email "[email protected]"
- bash -lc "GIT_SSH_COMMAND='ssh -i resources/ssh_appveyor' git push --delete [email protected]:validator/validator.git windows || true"
- git tag -m windows -f windows
artifacts:
- path: 'build\dist\*.zip*'
name: RuntimeImageArtifacts
deploy:
tag: windows
provider: GitHub
auth_token:
secure: kQDmkxCMEYfOefd3yGIfOTLL8e+w512Mv7tojXIVwH7Dgv0xx0n0mfdQXRFdKbXE
artifact: RuntimeImageArtifacts
draft: false
prerelease: true
force_update: true
on:
JAVA_HOME: C:\Program Files\Java\jdk11