Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljoos committed Mar 25, 2020
1 parent c1abc08 commit 325ff27
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;"

0 comments on commit 325ff27

Please sign in to comment.