From a99f28f67eedcb66c919d2b9b394124b5acd2c37 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Mon, 27 Jun 2022 13:48:13 +0200 Subject: [PATCH] test windows pipeline --- .drone.yml | 89 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 57 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8e876df..1319f68 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,32 +1,57 @@ ---- -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}" - - pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1' -Verbose; Invoke-InstallDependencies -Verbose}" - - name: LintTests - image: mcr.microsoft.com/powershell:latest - 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:latest - commands: - - pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}" - - pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-UnitTests}" - - name: coverage - image: plugins/codecov - settings: - token: - from_secret: CodeCovToken - files: - - coverage.xml +--- +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}" + - pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1' -Verbose; Invoke-InstallDependencies -Verbose}" + - name: LintTests + image: mcr.microsoft.com/powershell:latest + 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:latest + commands: + - pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}" + - pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-UnitTests}" + - name: coverage + image: plugins/codecov + settings: + token: + from_secret: CodeCovToken + files: + - 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}"