-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathappveyor.yml
63 lines (57 loc) · 2.37 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
61
62
63
platform: x64
configuration: Release
shallow_clone: true
version: 1.5.3.{build}
image: Visual Studio 2019
matrix:
fast_finish: true
# restore NuGet packages before running MSBuild
before_build:
- echo CD %CD%
- echo APPVEYOR_PROJECT_NAME %APPVEYOR_PROJECT_NAME%
- echo APPVEYOR_PROJECT_SLUG %APPVEYOR_PROJECT_SLUG%
- echo APPVEYOR_BUILD_FOLDER %APPVEYOR_BUILD_FOLDER%
- echo APPVEYOR_BUILD_ID %APPVEYOR_BUILD_ID%
- echo APPVEYOR_BUILD_NUMBER %APPVEYOR_BUILD_NUMBER%
- echo APPVEYOR_BUILD_VERSION %APPVEYOR_BUILD_VERSION%
- echo APPVEYOR_JOB_ID %APPVEYOR_JOB_ID%
- echo APPVEYOR_JOB_NAME %APPVEYOR_JOB_NAME%
- echo APPVEYOR_JOB_NUMBER %APPVEYOR_JOB_NUMBER%
- echo APPVEYOR_REPO_NAME %APPVEYOR_REPO_NAME%
- echo APPVEYOR_REPO_BRANCH %APPVEYOR_REPO_BRANCH%
- echo APPVEYOR_REPO_TAG %APPVEYOR_REPO_TAG%
- echo APPVEYOR_REPO_TAG_NAME %APPVEYOR_REPO_TAG_NAME%
- echo APPVEYOR_REPO_COMMIT %APPVEYOR_REPO_COMMIT%
- echo APPVEYOR_REPO_COMMIT_TIMESTAMP %APPVEYOR_REPO_COMMIT_TIMESTAMP%
- pip install -U Sphinx
- choco install html-help-workshop
- nuget update -self
- nuget restore FdoToolbox.sln
- echo Stamping version - %APPVEYOR_BUILD_VERSION%
- SetAssemblyVersion.exe -set:%APPVEYOR_BUILD_VERSION% Properties\GlobalAssemblyInfo.cs
- powershell.exe .\stamp-git-rev.ps1
build:
verbosity: normal
parallel: true
project: FdoToolbox.sln
after_build:
- appveyor_test.bat
# HACK: Hard-coding platform/release bc I have no idea how to interpolate env vars in a powershell invocation
- ps: .\out\x64\Release\run-fdocmd-tests.ps1
- set ARTIFACT_RELEASE_LABEL=%APPVEYOR_BUILD_VERSION%
- appveyor_postbuild.bat
artifacts:
- path: .\out\FDOToolbox-$(CONFIGURATION)-$(ARTIFACT_RELEASE_LABEL)-$(PLATFORM)-Setup.exe
name: installer_windows
deploy:
- provider: GitHub
release: $(appveyor_repo_tag_name)
description: 'Release $(appveyor_repo_tag_name) ($(appveyor_build_version))'
auth_token:
secure: Dw0UkS+M9jDa7xofORbKLKgTBWZsBTN56QA7xD7F0pCCdNqnLH3K5oFk3smWjRfX
artifact: installer_windows
draft: true
prerelease: true
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only