forked from Vitens/DBM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
40 lines (40 loc) · 1.57 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
version: "1.10.1.{build}"
skip_tags: true
before_build:
-
cmd: |-
git submodule update --init --remote --recursive
build_script:
-
cmd: |-
build.bat
after_build:
-
cmd: |-
for /f "delims=" %%i in ('powershell -Command "(Get-Item build\DBM.dll).VersionInfo.ProductVersion"') do set binversion=%%i
for /f "delims=" %%i in ('git rev-parse --short HEAD') do set commit=%%i
7z a %TEMP%\DBM_v%binversion%+%commit%_bin.zip .\build\*>NUL
appveyor PushArtifact %TEMP%\DBM_v%binversion%+%commit%_bin.zip
7z a %TEMP%\DBM_v%binversion%+%commit%_src.zip *>NUL
appveyor PushArtifact %TEMP%\DBM_v%binversion%+%commit%_src.zip
test_script:
-
cmd: |-
for /f "delims=" %%i in ('build\DBMTester.exe^|find "Unit tests"') do set message=%%i
echo %message%|find "PASSED">NUL&&set result=Passed||set result=Failed
appveyor AddTest "%message:~3%" -Framework "" -FileName "" -Outcome %result%
for /f "delims=" %%i in ('build\DBMTester.exe^|find "Integration tests"') do set message=%%i
echo %message%|find "PASSED">NUL&&set result=Passed||set result=Failed
appveyor AddTest "%message:~3%" -Framework "" -FileName "" -Outcome %result%
deploy:
tag: 'v$(binversion)+$(commit)'
release: 'DBM v$(binversion)+$(commit)'
description: '$(APPVEYOR_REPO_COMMIT_MESSAGE)'
provider: GitHub
auth_token:
secure: BrTAHlG3kNuONUuCV7ZEqGZmiLwLr3bMDGexczO4xd+i8ZtVLUgMzBRMpEhdSzbK
artifact: /.*/
draft: false
prerelease: false
on:
branch: master