-
Notifications
You must be signed in to change notification settings - Fork 55
/
appveyor.yml.old
76 lines (64 loc) · 3.03 KB
/
appveyor.yml.old
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
75
76
version: '{build}'
init:
clone_depth: 1
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
VS_VERSION: 2019
WIN_SDK: 10.0.18362.0
BUILD_ARCH: x64
configuration:
- Release
install:
- git submodule update --init --recursive --depth 5
- dir "C:\Program Files (x86)\Windows Kits\10\include\"
- set QTDIR32=C:\Qt\5.15\msvc2019
- set QTDIR64=C:\Qt\5.15\msvc2019_64
- cd file-commander-core\core-tests\
- call "%programfiles(x86)%\Microsoft Visual Studio\%VS_VERSION%\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 %WIN_SDK% && "%QTDIR64%\bin\qmake.exe" -tp vc -r
- cd ..\..
build_script:
- cd installer\windows\
- create_installer.bat
- cd ..\..
- cd file-commander-core\core-tests\
- msbuild /t:Build /p:Configuration=Release;PlatformToolset=v142
- cd ..\..
after_build:
- dir .\installer\windows\binaries\64\
- dir .\installer\windows\binaries\64\msvcr\
- dir .\installer\windows\binaries\64\Qt\
- xcopy /R /Y .\installer\windows\binaries\64\msvcr\* .\bin\release\x64\
- xcopy /R /Y .\installer\windows\binaries\64\Qt\* .\bin\release\x64\
# - .\bin\release\x64\FileCommander.exe --test-launch
test_script:
- .\bin\release\x64\fso_test.exe -s -r junit -o fso_test.xml
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\fso_test.xml))
- .\bin\release\x64\fso_test_high_level.exe -s -r junit -o fso_test_high_level.xml
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\fso_test_high_level.xml))
- ps: |
For ($i=1; $i -le 20; $i++) {
$randomSeed = ((get-date -Uformat %s).remove(10, 1));
$randomSeed = $randomSeed.substring($randomSeed.Length - 8);
& .\bin\release\$($env:BUILD_ARCH)\operationperformer_test.exe -s -r junit -o operationperformer_test_$i.xml --std-seed $randomSeed;
(new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\operationperformer_test_$i.xml));
}
- ps: |
$randomSeed = ((get-date -Uformat %s).remove(10, 1));
$randomSeed = $randomSeed.substring($randomSeed.Length - 8);
& .\bin\release\$($env:BUILD_ARCH)\filecomparator_test.exe -s -r junit -o filecomparator_test.xml --std-seed $randomSeed;
(new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\filecomparator_test.xml));
artifacts:
- path: installer\windows\FileCommander.exe
type: File
# deploy:
# description: $($env:APPVEYOR_REPO_COMMIT_MESSAGE)
# provider: GitHub
# auth_token:
# secure: E8CRx0r0qADoE0JR3QUFwD0bQSRGSUerCeCJs4BU6B+Rmz9BMvRLZmbtrqpPzGVS
# artifact: .\installer\windows\FileCommander.exe
# draft: false
# prerelease: true
# on:
# branch: master # release from master branch only
# APPVEYOR_REPO_TAG: true # deploy on tag push only