diff --git a/.travis.yml b/.travis.yml index f61ca08..c0ac787 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,16 +4,16 @@ services: - docker install: - - docker pull microsoft/powershell:6.0.4-ubuntu-trusty + - docker pull mcr.microsoft.com/powershell:7.0.0-alpine-3.10 script: - - docker run -v ${TRAVIS_BUILD_DIR}:/tmp/src/ microsoft/powershell:6.0.4-ubuntu-trusty pwsh -c " + # Unit Tests for PowerShell scripts + - docker run -v ${TRAVIS_BUILD_DIR}:/tmp/src/ mcr.microsoft.com/powershell:7.0.0-alpine-3.10 pwsh -c " \$ProgressPreference='SilentlyContinue'; Install-Module Pester -Force -SkipPublisherCheck -Scope CurrentUser; - Invoke-Pester /tmp/src; - exit $LastExitCode;" - - docker run -v ${TRAVIS_BUILD_DIR}:/tmp/src/ microsoft/powershell:6.0.4-ubuntu-trusty pwsh -c " + Invoke-Pester /tmp/src -EnableExit;" + # Linting for PowerShell scripts + - docker run -v ${TRAVIS_BUILD_DIR}:/tmp/src/ mcr.microsoft.com/powershell:7.0.0-alpine-3.10 pwsh -c " \$ProgressPreference='SilentlyContinue'; Install-Module PSScriptAnalyzer -Force -SkipPublisherCheck -Scope CurrentUser; - Invoke-ScriptAnalyzer -Path /tmp/src -Recurse -ReportSummary -EnableExit; - exit $LastExitCode;" + Invoke-ScriptAnalyzer -Path /tmp/src -Recurse -ReportSummary -EnableExit;"