PSCredentialStore/.drone.yml

64 lines
1.5 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
2022-06-30 15:52:03 +02:00
name: PWSH_LTS_7.2_Ubuntu-focal
platform:
os: linux
arch: amd64
steps:
- name: Environments
2022-06-30 15:52:03 +02:00
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
commands:
- |
pwsh -NonInteractive -c "& {
Import-Module './tools/DroneIO.psm1' -Verbose;
Invoke-ShowEnv -Verbose
}"
- name: LintTests
2022-06-30 15:52:03 +02:00
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
2022-06-28 10:52:10 +02:00
failure: ignore
commands:
- |
pwsh -NonInteractive -c "& {
Import-Module './tools/DroneIO.psm1';
Invoke-InstallDependencies;
2022-06-28 10:41:32 +02:00
Invoke-Linter -ErrorAction 'Stop'
}"
- name: UnitTests
2022-06-30 15:52:03 +02:00
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
2022-06-28 10:52:10 +02:00
failure: ignore
commands:
- |
pwsh -NonInteractive -c "& {
Import-Module './tools/DroneIO.psm1';
Invoke-InstallDependencies;
2022-06-30 15:55:08 +02:00
Invoke-UnitTest -Verbosity 'Normal' -ErrorAction 'Stop'
}"
- name: coverage
image: plugins/codecov
settings:
token:
from_secret: CodeCovToken
files:
- coverage.xml
2022-06-30 15:55:08 +02:00
depends_on:
- UnitTests
2022-06-29 13:44:49 +02:00
2022-06-30 15:52:03 +02:00
- name: SetPipelineState
2022-06-29 13:44:49 +02:00
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
commands:
- |
pwsh -NonInteractive -c "& {
Import-Module './tools/DroneIO.psm1';
2022-06-30 15:52:03 +02:00
Invoke-BuildState -ErrorAction 'Stop'
2022-06-29 13:51:01 +02:00
}"
2022-06-30 15:55:08 +02:00
depends_on:
- LintTests
- UnitTests
- Coverage