mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 09:52:30 +00:00
29 lines
No EOL
693 B
YAML
29 lines
No EOL
693 B
YAML
variables:
|
|
GIT_SSL_NO_VERIFY: "true"
|
|
|
|
before_script:
|
|
- Get-PackageProvider -Name NuGet -ForceBootstrap | Out-Null
|
|
- Install-Module InvokeBuild, BuildHelpers, PSScriptAnalyzer -force -Scope CurrentUser
|
|
- Install-Module Pester -Force -SkipPublisherCheck -Scope CurrentUser
|
|
- Import-Module PSScriptAnalyzer -Scope CurrentUser
|
|
|
|
stages:
|
|
- test
|
|
# - release
|
|
|
|
ps_scriptanalyzer:
|
|
stage: test
|
|
script:
|
|
- $res = (Invoke-ScriptAnalyzer -Path . -Severity Error).count
|
|
- if ($res -gt 0) { throw "$($res) Analytics failed."}
|
|
tags:
|
|
- powershell
|
|
|
|
# except:
|
|
# - master
|
|
#Release:
|
|
# stage: release
|
|
# script:
|
|
# - .\build.ps1 -Tasks 'analyze','test','release'
|
|
# only:
|
|
# - master |