Skip to content

Commit

Permalink
Added AppVeyor config.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbed committed Nov 1, 2017
1 parent 3f3fa97 commit d2ef828
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: 1.0.{build}

branches:
only:
- master

skip_tags: true
skip_commits:
files:
- README.md

max_jobs: 1

image: Visual Studio 2015

clone_folder: c:\projects\gibbed-borderlandsoz

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

install:
- git submodule update --init --recursive

configuration:
- SaveEdit Packaging
- Debug

build:
project: The Pre-Sequel!.sln
parallel: true
verbosity: minimal

before_build:
- nuget restore
- echo namespace Gibbed.BorderlandsOz.SaveEdit > projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- echo { >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- echo internal static class Version >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- echo { >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- if "%CONFIGURATION%"=="SaveEdit Packaging" echo public const string Configuration = null; >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- if NOT "%CONFIGURATION%"=="SaveEdit Packaging" echo public const string Configuration = "%CONFIGURATION%"; >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- echo public const string Commit = "%APPVEYOR_REPO_COMMIT%"; >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- echo public const string Timestamp = "%APPVEYOR_REPO_COMMIT_TIMESTAMP%"; >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- echo } >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs
- echo } >> projects/Gibbed.BorderlandsOz.SaveEdit/Version.cs

after_build:
- set TZ=GMT
- git log . > git-log.txt
- if NOT "%CONFIGURATION%"=="SaveEdit Packaging" 7z a -r -tzip -mx=9 -x!bin/Test.exe -x!*/LICENSE.txt borderlandsoz-%APPVEYOR_BUILD_VERSION%.zip ./LICENSE.txt ./README.txt git-log.txt bin/*.exe bin/*.dll bin/projects
- if NOT "%CONFIGURATION%"=="SaveEdit Packaging" 7z a -r -tzip -mx=9 -x!bin/Test.exe -x!*/LICENSE.txt borderlandsoz-%APPVEYOR_BUILD_VERSION%-with-symbols.zip ./LICENSE.txt ./README.txt git-log.txt bin/*.exe bin/*.dll bin/*.pdb bin/projects
- if "%CONFIGURATION%"=="SaveEdit Packaging" 7z a -r -tzip -mx=9 -x!*/LICENSE.txt saveedit-%APPVEYOR_BUILD_VERSION%.zip ./LICENSE.txt ./README.txt ./git-log.txt ./bin_saveedit/*.exe ./dist/*
- if "%CONFIGURATION%"=="SaveEdit Packaging" 7z a -r -tzip -mx=9 -x!*/LICENSE.txt saveedit-%APPVEYOR_BUILD_VERSION%-with-symbols.zip ./LICENSE.txt ./README.txt ./git-log.txt ./bin_saveedit/*.exe ./bin_saveedit/*.pdb ./dist/*

artifacts:
- path: '*-*.zip'

0 comments on commit d2ef828

Please sign in to comment.