forked from validator/validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
74 lines (63 loc) · 2.56 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
72
73
74
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
- bash -lc 'for file in build/dist/*.zip*; do touch $file.asc; done' # FIXME hack just to ensure the .asc files get uploaded during deploy
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%
- cmd: appveyor-tools\secure-file -decrypt resources\gpg_appveyor.enc -out resources\gpg_appveyor -secret %ssh_secret%
- chmod 600 resources\ssh_appveyor
- cat resources\ssh_known_hosts >> %userprofile%\.ssh\known_hosts
- chmod 600 %userprofile%\.ssh\known_hosts
- bash -lc 'rm -f build/dist/*.asc; gpg --import resources/gpg_appveyor; for file in build/dist/*.zip*; do gpg --yes -ab --local-user 6C976B92 --sign $file; done'
- git config --local user.name "AppVeyor"
- git config --local user.email "mike@w3.org"
- bash -lc "GIT_SSH_COMMAND='ssh -i resources/ssh_appveyor' git push --delete git@github.com: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