Skip to content

Commit

Permalink
Starter AppVeyor config
Browse files Browse the repository at this point in the history
  • Loading branch information
kf6kjg committed Oct 17, 2018
1 parent c2975ba commit ec0acf8
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 4 deletions.
83 changes: 83 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
init:
- ps: if ($env:APPVEYOR_REPO_TAG -eq "true") { $env:TAG_VERSION = "$env:APPVEYOR_REPO_TAG_NAME.$env:APPVEYOR_BUILD_NUMBER" } else { $env:TAG_VERSION = "v1.0.0.$env:APPVEYOR_BUILD_NUMBER-alpha" }
- ps: $env:TAG_VERSION = $env:TAG_VERSION -replace 'v',''
- ps: Write-Host "Setting version to '$env:TAG_VERSION'"
- ps: Update-AppveyorBuild -Version "$env:TAG_VERSION"

image:
- Visual Studio 2017
- Ubuntu

configuration: Release

platform:
- x64

pull_requests:
do_not_increment_build_number: true

nuget:
disable_publish_on_pr: true

skip_commits:
files:
- doc/*
- README.md
- .gitignore
- LICENSE

cache:
- HalcyonSetuptools\packages -> **\packages.config
- '%LocalAppData%\NuGet\Cache'

assembly_info:
patch: true
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'

before_build:
- ps: |
if ($isLinux) {
$env:EDITION = "mono"
} else {
$env:EDITION = "dotnet"
}
- cd HalcyonSetuptools
- nuget restore HalcyonSetuptools.sln

build:
project: HalcyonSetuptools\HalcyonSetuptools.sln
parallel: true
verbosity: minimal
publish_nuget: false
publish_nuget_symbols: false
for:
-
matrix:
only:
- image: Ubuntu
build_script:
- msbuild HalcyonSetuptools.sln

after_build:
- ps: Set-Location "$env:APPVEYOR_BUILD_FOLDER"
- ps: Rename-Item -Path bin -NewName halcyon-setuptools

# No tests for now.
test: off

artifacts:
- path: halcyon-setuptools
name: halcyon-setuptools-$(APPVEYOR_BUILD_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(EDITION)
type: zip

deploy:
provider: GitHub
auth_token:
secure: "CfI4VUu86RwI9MC8YoMfj9PJRiyoVkwD8AAyiUgKXpPU32Zw"
artifact: halcyon-setuptools-$(APPVEYOR_BUILD_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(EDITION)
draft: true
prerelease: false
on:
APPVEYOR_REPO_TAG: true
4 changes: 2 additions & 2 deletions HalcyonSetuptools/NDesk.Options/NDesk.Options.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<OutputPath>..\..\bin</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\..\bin</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
4 changes: 2 additions & 2 deletions HalcyonSetuptools/hc-database/hc-database.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<OutputPath>..\..\bin</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -27,7 +27,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\..\bin</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# halcyon-setuptools

Build Status
* Master branch: [![Build status](https://ci.appveyor.com/api/projects/status/x6px79a0vyb4ada7/branch/master?svg=true)](https://ci.appveyor.com/project/HalcyonGrid/halcyon-setuptools/branch/master)
* Latest release: [https://github.com/HalcyonGrid/halcyon-setuptools/releases](https://github.com/HalcyonGrid/halcyon-setuptools/releases)

Tools to assist in configuring and launching halcyon instances

## Compiling

Simply open the solution file under `HalcyonSetuptools` in Visual Studio 2017 or a recent version of MonoDevelop and build. The resulting binaries will be located in the `bin` folder that will be produced as a result.

0 comments on commit ec0acf8

Please sign in to comment.