forked from Pr-Mex/VAEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
60 lines (52 loc) · 2.03 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
version: 0.{build}
image: Visual Studio 2019
configuration: Release
platform: x64
environment:
KEY_1CV8T:
secure: OolAVEKkEg1cGCpG/VK2FaM0LWrPgMR/Kn4nTLYyKR0=
APPVEYOR_RDP_PASSWORD:
secure: Eh+U4U31T7wawjBeINftkw==
install:
- git clone -q --branch=platform https://github.com/lintest/tools1c.git bin
- cd bin
- 7z x tools1c.part01.rar -p%KEY_1CV8T%
- cd ..
- git clone -q --branch=oscript.w64 https://github.com/lintest/tools1c.git oscript
- cd oscript
- 7z x *.zip
- cd ..
- ps: $env:PACKAGE_VERSION = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Update-AppveyorBuild -Version "$env:PACKAGE_VERSION.$env:APPVEYOR_BUILD_NUMBER$env:LINTEST_FLAG"
- ps: $package = (Get-Content -Raw -Path package.json | ConvertFrom-Json)
- ps: $package.version = "$env:APPVEYOR_BUILD_VERSION"
- ps: $package | ConvertTo-Json | Out-File -Encoding UTF8 version.json
- npm -q --no-progress install .
build_script:
- npx webpack --mode production
- 7z a VAEditor.zip %CD%/dist/index.html
- chcp 65001 > nul & .\oscript\bin\oscript .\\tools\\onescript\\ZipTemplates.os
after_build:
- mkdir database
- bin\1cv8t.exe CREATEINFOBASE File=%CD%/database
- bin\1cv8t.exe DESIGNER /F %CD%/database /LoadConfigFromFiles %CD%/config /UpdateDBCfg
- bin\1cv8t.exe DESIGNER /F %CD%/database /LoadExternalDataProcessorOrReportFromFiles example/VAEditorSample.xml VAEditorSample.epf /Out example.log
- appveyor PushArtifact example.log
- appveyor PushArtifact VAEditorSample.epf
- bin\1cv8ct.exe ENTERPRISE /LRU /F %CD%/database /Execute VAEditorSample.epf /C autotest
- ps: if (!(Test-Path success.txt)) { throw "Имеются ошибки" }
artifacts:
- path: AutoTest.zip
- path: VAEditor.zip
- path: VAEditorSample.epf
deploy:
- provider: GitHub
auth_token:
secure: v7P89NQ2I5+WGNNdhpFrZEt6OCTPf8A8VSC5rttZMXh3DJ2fTChNEjZ1Wvm3kfBt
repository: Pr-Mex/VAEditor
artifact: VAEditor.zip, VAEditorSample.epf
draft: true
prerelease: true
force_update: true
on:
branch: master