-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
executable file
·64 lines (43 loc) · 1.65 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
version: 2.0.{build}
image: Visual Studio 2022
environment:
main_project: component
before_build:
- ps: nuget restore
init:
- REG ADD "HKLM\Software\Microsoft\Command Processor" /v Autorun /t REG_SZ /d "chcp 65001>nul" /f
- ps: Set-WinSystemLocale ru-RU
- ps: Start-Sleep -s 5
- ps: Restart-Computer
install:
- cmd: >-
mkdir engine
cd engine
appveyor DownloadFile https://oscript.io/downloads/preview/OneScript-2.0.0-rc4-fdd-x64.zip -FileName fdd.zip
7z x fdd.zip > NUL
set PATH=%cd%\bin;%PATH%
cd ..
appveyor DownloadFile https://github.com/dmpas/OneScriptDocumenter/releases/download/1.0.13/documenter.zip -FileName OneScriptDocumenter.zip
7z x OneScriptDocumenter.zip > NUL
oscript -version
opm install opm
build:
verbosity: minimal
configuration: Release
test_script:
- cmd: nunit3-console NUnitTests\bin\%CONFIGURATION%\net6.0\NUnitTests.dll --result=myresults.xml;format=AppVeyor
- cmd: oscript testcomponent.os
after_build:
- cmd: >-
del %main_project%\bin\%CONFIGURATION%\netstandard2.1\*.pdb
mkdir -p oslib\Components\dotnet
OneScriptDocumenter.exe json oslib\Components\dotnet\syntaxHelp.json %main_project%\bin\%CONFIGURATION%\netstandard2.1\1script_%main_project%.dll
del %main_project%\bin\%CONFIGURATION%\ScriptEngine*.* %main_project%\bin\%CONFIGURATION%\netstandard2.1\NewtonSoft*.* %main_project%\bin\%CONFIGURATION%\netstandard2.1\DotNetZip*.*
xcopy %main_project%\bin\%CONFIGURATION%\netstandard2.1\* oslib\Components\dotnet\
cd oslib
opm build .
for %%X in (*.ospx) do (opm install -f %%X )
cd ..
artifacts:
- path: .\oslib\*.ospx
name: component