-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
79 lines (58 loc) · 2.25 KB
/
Copy path.appveyor.yml
File metadata and controls
79 lines (58 loc) · 2.25 KB
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
77
78
79
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: '{branch}-{build}'
# Do not build on tags (GitHub only)
skip_tags: true
# manual mode
branches:
except:
- /.*/
#---------------------------------#
# environment configuration #
#---------------------------------#
# environment variables
# build system info: https://www.appveyor.com/docs/build-environment/#pre-installed-software
os: Visual Studio 2017
environment:
REPO_DIR: &REPO_DIR c:\project # directory created by appveyor
SOL_FILE: foo_uie_output_switcher.sln
MSBUILD_CMD: /maxcpucount /property:Configuration=Release,Platform=Win32,PlatformToolset=v141,WindowsTargetPlatformVersion=10.0.14393.0
# clone directory
clone_folder: *REPO_DIR
#---------------------------------#
# build configuration #
#---------------------------------#
# scripts to run before build
before_build:
- cd "%REPO_DIR%"
- git submodule update --init --jobs 5 --recursive --remote --depth 1
# to run your custom scripts instead of automatic MSBuild
build_script:
- cd "%REPO_DIR%"
- msbuild %SOL_FILE% %MSBUILD_CMD%
# scripts to run before deployment
after_build:
# prepare for artifacts packaging
- cd "%REPO_DIR%"
- 7z a -tzip -mx9 "foo_uie_output_switcher.fb2k-component" "%REPO_DIR%\Release\foo_uie_output_switcher.dll"
- 'powershell -Command "& { $hash = (Get-FileHash -Algorithm SHA1 "foo_uie_output_switcher.fb2k-component").hash.ToString().toLower(); Write-Host $hash " *foo_uie_output_switcher.fb2k-component"; }" > "foo_uie_output_switcher.fb2k-component.sha1"'
#---------------------------------#
# tests configuration #
#---------------------------------#
# to disable automatic tests
test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: foo_uie_output_switcher.fb2k-component
name: plugin
- path: foo_uie_output_switcher.fb2k-component.sha1
name: checksum