/
appveyor.yml
37 lines (21 loc) · 904 Bytes
/
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
version: build.{build}
image: Visual Studio 2019
build_script:
- ps: >-
$latestRelease = Invoke-WebRequest https://api.github.com/repos/seddryck/nbi/releases/latest -Headers @{"Accept"="application/json"}
$json = $latestRelease.Content | ConvertFrom-Json
write-host 'latest version:' $json.tag_name
$url = $json.assets | ? { $_.Name -Match "Genbi" } | % browser_download_url
write-host 'url:' $url
$zipfilePath = 'C:\Projects\genbi.zip'
write-host 'destination:' $zipfilePath
Invoke-WebRequest -Uri $url -OutFile $zipfilePath
$destinationUnzipPath = 'C:\Projects\Genbi'
& 7z x "-o$($destinationUnzipPath)" $zipfilePath -r ;
- cmd: >-
echo 'building test-suite ...'
"C:\projects\Genbi\Genbi.exe" "dictionary.genbil" -q
echo 'test-suite built.'
artifacts:
- path: '*.nbits'
name: Test-suite