Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenjaminAbt/710d539dca1957e2c27e to your computer and use it in GitHub Desktop.
Save BenjaminAbt/710d539dca1957e2c27e to your computer and use it in GitHub Desktop.
SchwabenCode.FlexMapper.appveyor.0.0.9.yml
#-------------------------------------------------#
# 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