PSCredentialStore/.drone.yml

108 lines
2.3 KiB
YAML
Raw Normal View History

---
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
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
image: mcr.microsoft.com/powershell:latest
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-UnitTest -Verbosity 'Detailed' -ErrorAction 'Stop'
}"
- name: coverage
image: plugins/codecov
settings:
token:
from_secret: CodeCovToken
files:
- coverage.xml
2022-06-29 13:44:49 +02:00
---
kind: pipeline
type: docker
name: PWSH_LTS_7.2_Ubuntu-focal
platform:
os: linux
arch: amd64
platform:
os: linux
arch: amd64
steps:
- name: Environments
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
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
2022-06-29 14:00:30 +02:00
#failure: ignore
2022-06-29 13:44:49 +02:00
commands:
- |
pwsh -NonInteractive -c "& {
Import-Module './tools/DroneIO.psm1';
Invoke-InstallDependencies;
Invoke-Linter -ErrorAction 'Stop'
}"
- name: UnitTests
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
2022-06-29 14:00:30 +02:00
#failure: ignore
2022-06-29 13:44:49 +02:00
commands:
- |
pwsh -NonInteractive -c "& {
Import-Module './tools/DroneIO.psm1';
Invoke-InstallDependencies;
Invoke-UnitTest -Verbosity 'Detailed' -ErrorAction 'Stop'
2022-06-29 13:46:38 +02:00
}"
2022-06-29 13:51:01 +02:00
- name: FinalState
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
commands:
- |
pwsh -NonInteractive -c "& {
2022-06-29 13:53:19 +02:00
Import-Module './tools/DroneIO.psm1';
Invoke-ShowEnv -Verbose
2022-06-29 13:51:01 +02:00
}"
2022-06-29 14:00:30 +02:00
depends_on:
- LintTests
- UnitTests