GithubHelp home page GithubHelp logo

poshbuildtools's Introduction

PoshBuildTools

Depreciated: This module has been replaced by DscResource.CodeCoverage

PowerShell Module to help build and test powershell modules using appveyor

Build status

WMF/PowerShell 5 Installation

From PowerShell run:

Register-PSRepository -Name PoshBuildTools -SourceLocation https://ci.appveyor.com/nuget/poshbuildtools
Install-Module PoshBuildTools -Scope CurrentUser

WMF/PowerShell 4 Installation

  1. Download nuget.exe from NuGet.org
&nuget.exe install PoshBuildTools -source https://ci.appveyor.com/nuget/poshbuildtools -outputDirectory "$env:USERPROFILE\Documents\WindowsPowerShell\Modules\" -ExcludeVersion

Examples/Testing:

See the following files:

  • Appveyor.yml
  • .\tools\AppveyorPhases.psm1

poshbuildtools's People

Contributors

travisez13 avatar

Stargazers

Camilo E. Hidalgo Estevez avatar  avatar Warren Frame avatar  avatar Victor Vogelpoel avatar Thomas Malkewitz avatar Doug Finke avatar Rod Stewart avatar Kevin Kirkpatrick avatar Sergei Vorobev avatar

Watchers

Camilo E. Hidalgo Estevez avatar James Cloos avatar  avatar  avatar

poshbuildtools's Issues

Support versions that are not the full 4 parts

Index was outside the bounds of the array.
At C:\Users\appveyor\Documents\WindowsPowerShell\Modules\PoshBuildTools\BuildTools.psm1:308 char:73

  • $newVersion = New-Object -TypeName 'System.Version' -ArgumentList @($version ...
    
  •                                                                     ~~~~~~~~
    
    • CategoryInfo : OperationStopped: (:) [], IndexOutOfRangeException
    • FullyQualifiedErrorId : System.IndexOutOfRangeException

New-PesterCodeCov should take commit is parameter

Currently (because you call git.exe to get the commit ID) this function must be run in the RepoRoot folder, and only git repositories are supported. On AppVeyor there's already a APPVEYOR_REPO_COMMIT environment variable which can be used (to avoid the exe call).

Support optionally publishing the nuget package

Get-Content : Cannot find path 'C:\projects\xdhcpserver\xDhcpServer.nuspec' because it does not exist.
At C:\Users\appveyor\Documents\WindowsPowerShell\Modules\PoshBuildTools\BuildTools.psm1:322 char:17

  • [xml]$xml = Get-Content -Raw $nuspecPath
    
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\projects\xdh...cpServer.nuspec:String) [Get-Content], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Rewrite the file generated my New-ModuleManifest an UTf8

File C:\projects\xdhcpserver\xDhcpServer.psd1 contains 0x00 bytes. It's probably uses Unicode and need to be converted to UTF-8. Use Fixer 'Get-UnicodeFilesList $pwd | ConvertTo-UTF8'.
[-] Doesn't use Unicode encoding 1.4s
Expected: {0}
But was: {1}
at line: 35 in C:\projects\xdhcpserver\DscResource.Tests\Meta.Tests.ps1
35: $unicodeFilesCount | Should Be 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.