2020-10-02 13:05:01 +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}"
|
|
|
|
- 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}"
|
2020-10-02 15:12:54 +02:00
|
|
|
- bash curl -s https://codecov.io/bash -o codecov.sh
|
|
|
|
- bash codecov.sh -f 'coverage.xml'
|