-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled automated builds via AppVeyor
- Loading branch information
1 parent
38b5ffe
commit b81b757
Showing
4 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
image: Visual Studio 2017 | ||
configuration: Release | ||
platform: Any CPU | ||
|
||
# Don't get the full project history to save time | ||
shallow_clone: true | ||
|
||
# Cache NuGet packages between builds to save time | ||
cache: | ||
- packages -> **\packages.config | ||
|
||
# Auto-fill AssemblyInfo.cs | ||
assembly_info: | ||
patch: true | ||
file: '**\AssemblyInfo.*' | ||
# Use tag name + build number as assembly version | ||
# Assembly versions should be Major.Minor.Revision.Build | ||
# ex: 1.1.12.255 | ||
assembly_version: '$(APPVEYOR_REPO_TAG_NAME).$(APPVEYOR_BUILD_NUMBER)' | ||
assembly_file_version: '$(APPVEYOR_REPO_TAG_NAME).$(APPVEYOR_BUILD_NUMBER)' | ||
assembly_informational_version: '$(APPVEYOR_REPO_TAG_NAME).$(APPVEYOR_BUILD_NUMBER)' | ||
|
||
before_build: | ||
# Manually set build version in a way that allows environment variables | ||
- ps: Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME.$env:APPVEYOR_BUILD_NUMBER" | ||
|
||
# Generate a VERSION file to include in artifacts | ||
- ps: >- | ||
$env:GIT_HASH = $env:APPVEYOR_REPO_COMMIT.Substring(0, 7) | ||
"source: $env:APPVEYOR_REPO_PROVIDER $env:APPVEYOR_REPO_NAME" > VERSION | ||
"commit: $env:APPVEYOR_REPO_BRANCH $env:GIT_HASH $env:APPVEYOR_REPO_COMMIT_TIMESTAMP" >> VERSION | ||
"version: $env:APPVEYOR_BUILD_VERSION" >> VERSION | ||
# Restore NuGet packages | ||
- appveyor-retry nuget restore | ||
|
||
build: | ||
project: PulsarPluginLoader.sln | ||
verbosity: minimal | ||
|
||
after_build: | ||
# Create two .ZIP artifacts: | ||
# PulsarPluginBootstrapper-*.zip for end users to enable plugins (recommended download) | ||
# PulsarPluginLoader.dll-*.zip for developers to reference during plugin creation | ||
- cmd: >- | ||
7z a PulsarPluginBootstrapper-%APPVEYOR_BUILD_VERSION%-%GIT_HASH%.zip README.md VERSION .\PulsarInjector\bin\Release\* -xr!*.pdb -xr!Assembly-CSharp.dll -mx=7 | ||
7z a PulsarPluginLoader.dll-%APPVEYOR_BUILD_VERSION%-%GIT_HASH%.zip README.md VERSION .\PulsarPluginLoader\bin\Release\PulsarPluginLoader.dll -mx=7 | ||
artifacts: | ||
- path: PulsarPluginBootstrapper-$(APPVEYOR_BUILD_VERSION)-$(GIT_HASH).zip | ||
name: PulsarPluginBootstrapper | ||
- path: PulsarPluginLoader.dll-$(APPVEYOR_BUILD_VERSION)-$(GIT_HASH).zip | ||
name: PulsarPluginLoader.dll | ||
|
||
deploy: | ||
- provider: GitHub | ||
tag: $(APPVEYOR_REPO_TAG_NAME) | ||
release: PPL v$(APPVEYOR_BUILD_VERSION) | ||
description: "" | ||
artifact: PulsarPluginBootstrapper,PulsarPluginLoader.dll | ||
# Only upload TAGGED releases instead of every commit | ||
on: | ||
appveyor_repo_tag: true | ||
auth_token: | ||
secure: nJm0eDjrcfLhUCTsM7AiTp7GJi40mWXB8LPFRHek/uMqcvX2mdxxZ8cusuns5GAO |
Binary file not shown.