Created
December 14, 2015 11:48
-
-
Save BenjaminAbt/710d539dca1957e2c27e to your computer and use it in GitHub Desktop.
SchwabenCode.FlexMapper.appveyor.0.0.9.yml
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
#-------------------------------------------------# | |
# GENERAL # | |
#-------------------------------------------------# | |
version: 0.0.9.{build}-develop | |
#-------------------------------------------------# | |
# ENVIRONMENT # | |
#-------------------------------------------------# | |
os: Visual Studio 2015 | |
environment: | |
versionPatchKey: '#version#' | |
dnvmDownloadUrl: 'https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1' | |
dnvmVersion: '1.0.0-rc1-final' | |
#-------------------------------------------------# | |
# INIT # | |
#-------------------------------------------------# | |
init: | |
- git config --global core.autocrlf true | |
#-------------------------------------------------# | |
# INSTALL # | |
#-------------------------------------------------# | |
install: | |
- cmd: nuget sources add -Name api.nuget.org -Source https://api.nuget.org/v3/index.json | |
#-------------------------------------------------# | |
# BUILD CONFIGURATION # | |
#-------------------------------------------------# | |
before_build: | |
- ps: Write-Host "PATCHING project.json $env:versionPatchKey to $env:appveyor_build_version" | |
- ps: (Get-Content src\SchwabenCode.FlexMapper\project.json).replace($env:versionPatchKey, $env:appveyor_build_version) | Set-Content src\SchwabenCode.FlexMapper\project.json | |
- ps: (Get-Content src\SchwabenCode.FlexMapper.UnitTests\project.json).replace($env:versionPatchKey, $env:appveyor_build_version) | Set-Content src\SchwabenCode.FlexMapper.UnitTests\project.json | |
- ps: "&{$Branch='dev';iex ((new-object net.webclient).DownloadString($env:dnvmDownloadUrl))}" | |
- cmd: dnvm install $env:dnvmVersion | |
- cmd: dnvm upgrade | |
- cmd: dnvm update-self | |
- cmd: dnvm list | |
- cmd: dnvm use $env:dnvmVersion | |
- cmd: dnu restore | |
build_script: | |
- cmd: dnu build src\SchwabenCode.FlexMapper | |
#-------------------------------------------------# | |
# TEST CONFIGURATION # | |
#-------------------------------------------------# | |
test_script: | |
- cmd: cd src\SchwabenCode.FlexMapper.UnitTests | |
- cmd: dnx test | |
#-------------------------------------------------# | |
# BRANCH CONFIGURATION # | |
#-------------------------------------------------# | |
branches: | |
# whitelist | |
only: | |
- develop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment