Skip to content
Permalink
Browse files

Attempting to address build issues (#69)

  • Loading branch information...
Turnerj committed May 27, 2019
1 parent e65751c commit 94de91b9574433821f798f9864c46fc5be62a75e
Showing with 48 additions and 55 deletions.
  1. +33 −55 .appveyor.yml
  2. +1 −0 MongoFramework.sln
  3. +14 −0 build.appveyor.ps1
@@ -1,55 +1,33 @@
-
version: '{build}'
image: Visual Studio 2017
skip_tags: true
branches:
only:
- master
skip_commits:
files:
- '**/*.md'

services:
- mongodb
install:
- choco install opencover codecov
- ps: .\build\dotnet-install.ps1 -Version 3.0.100-preview5-011568

build_script:
- ps: .\build.ps1 -CheckCoverage $True

test: false
artifacts:
- path: '.\build-artifacts\*'


-
version: '{build}'
image: Visual Studio 2017
skip_non_tags: true

services:
- mongodb
install:
- choco install opencover codecov
- ps: .\build\dotnet-install.ps1 -Version 3.0.100-preview5-011568

build_script:
- ps: .\build.ps1 -CreatePackages $True

test: false
artifacts:
- path: '.\build-artifacts\*'

deploy:
- provider: NuGet
artifact: /.*nupkg/
api_key:
secure: eCdbkZMnfQfn//yoFtvyHHVUkoIX1yUfs6qRtOGsRxQq95pDPNMUMD0+XN9itbKp
- provider: GitHub
artifact: /.*nupkg/
draft: true
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'Release Description'
auth_token:
secure: 8WGv8noklaCJAQEBpcs+VShk/Hql5zbyx0VPhMvzUw0RcG7rAd2KxKIh4gazXlBi
version: '{build}'
image: Visual Studio 2017
skip_branch_with_pr: true

services:
- mongodb
install:
- choco install opencover codecov
- ps: .\build\dotnet-install.ps1 -Version 3.0.100-preview5-011568

build_script:
- ps: .\build.appveyor.ps1 -IsTagBuild ([System.Convert]::ToBoolean($env:APPVEYOR_REPO_TAG))

test: false
artifacts:
- path: '.\build-artifacts\*'

deploy:
- provider: NuGet
artifact: /.*nupkg/
api_key:
secure: eCdbkZMnfQfn//yoFtvyHHVUkoIX1yUfs6qRtOGsRxQq95pDPNMUMD0+XN9itbKp
on:
APPVEYOR_REPO_TAG: true
- provider: GitHub
artifact: /.*nupkg/
draft: true
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'TODO'
auth_token:
secure: 8WGv8noklaCJAQEBpcs+VShk/Hql5zbyx0VPhMvzUw0RcG7rAd2KxKIh4gazXlBi
on:
APPVEYOR_REPO_TAG: true
@@ -22,6 +22,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "global", "global", "{BA1176
.codecov.yml = .codecov.yml
.editorconfig = .editorconfig
.gitignore = .gitignore
build.appveyor.ps1 = build.appveyor.ps1
build.ps1 = build.ps1
License.txt = License.txt
README.md = README.md
@@ -0,0 +1,14 @@
[CmdletBinding(PositionalBinding=$false)]
param(
[bool] $IsTagBuild
)


Write-Host "Initialising AppVeyor build..." -ForegroundColor "Magenta"

if ($IsTagBuild) {
.\build.ps1 -CreatePackages $True
}
else {
.\build.ps1 -CheckCoverage $True
}

0 comments on commit 94de91b

Please sign in to comment.
You can’t perform that action at this time.