devblackops / Stucco

An opinionated Plaster template for high-quality PowerShell modules
MIT License
196 stars 27 forks source link

Add support for GitLab CI #11

Closed sk82jack closed 4 years ago

sk82jack commented 5 years ago

Description

This PR adds support for using GitLab CI pipelines as an alternative to AppVeyor and Azure Devops.

Related Issue

Fixes #5

Motivation and Context

Adds an option for folks who wish to use GitLab CI pipelines

How Has This Been Tested?

I've been testing by creating test repositories. Initially I ran into some issues with case sensitivity:

The first one (see screenshot 1) was that it couldn't find the tests folder because it's PascalCase in the Plaster manifest but the folder provided from PowerShellBuild is all lowercase. I fixed this by changing the case in the Plaster manifest.

Once the tests folder was fixed I ran into a second issue (see screenshot 2) that it couldn't find the public and private folders within the module because in the psm1 file they are all lowercase but in the Plaster manifest they are PascalCase. I fixed this by changing the case of each folder in the psm1 file.

Please let me know if you'd prefer alternative ways of dealing with these issues.

Here is an example of a successful test after making the fixes above: GitHub repository GitLab CI/CD jobs

Screenshots (if appropriate):

Screenshot 1

image

Screenshot 2

image

Types of changes

Checklist:

devblackops commented 4 years ago

This is great @sk82jack. Thanks for add this and for fixing the bugs!