2022-06-28 08:56:33 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Linux_PWSH7_Build
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Environments
|
|
|
|
image: mcr.microsoft.com/powershell:latest
|
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
pwsh -NonInteractive -c "& {
|
|
|
|
Import-Module './tools/DroneIO.psm1' -Verbose;
|
|
|
|
Invoke-ShowEnv -Verbose
|
|
|
|
}"
|
|
|
|
|
|
|
|
- name: LintTests
|
|
|
|
image: mcr.microsoft.com/powershell:latest
|
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
pwsh -NonInteractive -c "& {
|
|
|
|
Import-Module './tools/DroneIO.psm1';
|
|
|
|
Invoke-InstallDependencies;
|
|
|
|
Invoke-Linter
|
|
|
|
}"
|
|
|
|
|
|
|
|
- name: UnitTests
|
|
|
|
image: mcr.microsoft.com/powershell:latest
|
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
pwsh -NonInteractive -c "& {
|
|
|
|
Import-Module './tools/DroneIO.psm1';
|
|
|
|
Invoke-InstallDependencies;
|
2022-06-28 09:52:29 +02:00
|
|
|
Invoke-UnitTest -Verbosity 'Detailed'
|
2022-06-28 08:56:33 +02:00
|
|
|
}"
|
|
|
|
|
|
|
|
- name: coverage
|
|
|
|
image: plugins/codecov
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: CodeCovToken
|
|
|
|
files:
|
|
|
|
- coverage.xml
|