2022-06-28 08:56:33 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-07-14 13:37:12 +02:00
|
|
|
name: PWSH_LTS_7.2_Ubuntu-focal
|
2022-06-28 08:56:33 +02:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Environments
|
2022-07-14 13:37:12 +02:00
|
|
|
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
|
2022-06-28 08:56:33 +02:00
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
pwsh -NonInteractive -c "& {
|
|
|
|
Import-Module './tools/DroneIO.psm1' -Verbose;
|
|
|
|
Invoke-ShowEnv -Verbose
|
|
|
|
}"
|
|
|
|
|
|
|
|
- name: LintTests
|
2022-07-14 13:37:12 +02:00
|
|
|
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
|
|
|
|
failure: ignore
|
2022-06-28 08:56:33 +02:00
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
pwsh -NonInteractive -c "& {
|
|
|
|
Import-Module './tools/DroneIO.psm1';
|
|
|
|
Invoke-InstallDependencies;
|
2022-07-14 13:37:12 +02:00
|
|
|
Invoke-Linter -ErrorAction 'Stop'
|
2022-06-28 08:56:33 +02:00
|
|
|
}"
|
|
|
|
|
|
|
|
- name: UnitTests
|
2022-07-14 13:37:12 +02:00
|
|
|
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
|
|
|
|
failure: ignore
|
2022-06-28 08:56:33 +02:00
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
pwsh -NonInteractive -c "& {
|
|
|
|
Import-Module './tools/DroneIO.psm1';
|
|
|
|
Invoke-InstallDependencies;
|
2022-07-14 13:37:12 +02:00
|
|
|
Invoke-UnitTest -Verbosity 'Normal' -ExcludeTag @( 'Integration', 'Disabled') -ErrorAction 'Stop'
|
2022-06-28 08:56:33 +02:00
|
|
|
}"
|
|
|
|
|
2022-07-14 13:37:12 +02:00
|
|
|
# Disable Codecov for self hosted git
|
|
|
|
#- name: Coverage
|
|
|
|
# image: plugins/codecov
|
|
|
|
# settings:
|
|
|
|
# token:
|
|
|
|
# from_secret: CodeCovToken
|
|
|
|
# files:
|
|
|
|
# - coverage.xml
|
|
|
|
# depends_on:
|
|
|
|
# - UnitTests
|
|
|
|
|
|
|
|
- name: SetPipelineState
|
|
|
|
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
|
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
pwsh -NonInteractive -c "& {
|
|
|
|
Import-Module './tools/DroneIO.psm1';
|
|
|
|
Invoke-BuildState -ErrorAction 'Stop'
|
|
|
|
}"
|
|
|
|
depends_on:
|
|
|
|
- LintTests
|
|
|
|
- UnitTests
|
|
|
|
#- Coverage
|