test windows pipeline
This commit is contained in:
parent
b3342d4ebb
commit
a99f28f67e
89
.drone.yml
89
.drone.yml
@ -1,32 +1,57 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: Linux_PWSH7_Build
|
name: Linux_PWSH7_Build
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Environments
|
- name: Environments
|
||||||
image: mcr.microsoft.com/powershell:latest
|
image: mcr.microsoft.com/powershell:latest
|
||||||
commands:
|
commands:
|
||||||
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1' -Verbose; Invoke-ShowEnv -Verbose}"
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1' -Verbose; Invoke-ShowEnv -Verbose}"
|
||||||
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1' -Verbose; Invoke-InstallDependencies -Verbose}"
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1' -Verbose; Invoke-InstallDependencies -Verbose}"
|
||||||
- name: LintTests
|
- name: LintTests
|
||||||
image: mcr.microsoft.com/powershell:latest
|
image: mcr.microsoft.com/powershell:latest
|
||||||
commands:
|
commands:
|
||||||
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}"
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}"
|
||||||
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-Linter}"
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-Linter}"
|
||||||
- name: UnitTests
|
- name: UnitTests
|
||||||
image: mcr.microsoft.com/powershell:latest
|
image: mcr.microsoft.com/powershell:latest
|
||||||
commands:
|
commands:
|
||||||
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}"
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}"
|
||||||
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-UnitTests}"
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-UnitTests}"
|
||||||
- name: coverage
|
- name: coverage
|
||||||
image: plugins/codecov
|
image: plugins/codecov
|
||||||
settings:
|
settings:
|
||||||
token:
|
token:
|
||||||
from_secret: CodeCovToken
|
from_secret: CodeCovToken
|
||||||
files:
|
files:
|
||||||
- coverage.xml
|
- coverage.xml
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
plattform:
|
||||||
|
os: windows
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Environments
|
||||||
|
image: mcr.microsoft.com/powershell:lts-7.2-nanoserver-1809
|
||||||
|
commands:
|
||||||
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1' -Verbose; Invoke-ShowEnv -Verbose}"
|
||||||
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1' -Verbose; Invoke-InstallDependencies -Verbose}"
|
||||||
|
- name: LintTests
|
||||||
|
image: mcr.microsoft.com/powershell:lts-7.2-nanoserver-1809
|
||||||
|
commands:
|
||||||
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}"
|
||||||
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-Linter}"
|
||||||
|
- name: UnitTests
|
||||||
|
image: mcr.microsoft.com/powershell:lts-7.2-nanoserver-1809
|
||||||
|
commands:
|
||||||
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}"
|
||||||
|
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-UnitTests}"
|
||||||
|
Loading…
Reference in New Issue
Block a user