forked from uxmal/pytocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
35 lines (27 loc) · 939 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
version: 1.0.0.{build}
init:
- git config --global core.autocrlf true
image: Visual Studio 2017
platform: Any CPU
configuration: Debug
build:
project: src/pytocs.sln
verbosity: normal
environment:
artifacts_dir: bin
after_build:
- ps : >-
$shortHash = $env:APPVEYOR_REPO_COMMIT.Substring(0, 10);
$version = ls ./src/bin/$env:CONFIGURATION/pytocs.exe | % VersionInfo | % ProductVersion;
mkdir $env:artifacts_dir;
;
<# zip pytocs.exe, append version and short hash #>;
"[after_build] compressing Pytocs...";
7z a $env:artifacts_dir/pytocs-$version-$shortHash.zip ./src/bin/$env:CONFIGURATION/.;
;
test_script:
- cmd: nunit-console-x86.exe ./src/bin/%CONFIGURATION%/pytocs.exe /framework:net-4.5
# - cmd: python ./subjects/regressionTests.py --check-output --configuration=%CONFIGURATION%
artifacts:
- path: bin/Pytocs-*.zip
name: Pytocs executable