File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : generic
2
+
3
+ services :
4
+ - docker
5
+
6
+ install :
7
+ - docker pull microsoft/powershell:6.0.4-ubuntu-trusty
8
+
9
+ script :
10
+ # Unit Tests for PowerShell scripts
11
+ - docker run -v ${TRAVIS_BUILD_DIR}:/tmp/src/ microsoft/powershell:6.0.4-ubuntu-trusty pwsh -c "
12
+ \$ProgressPreference='SilentlyContinue';
13
+ Install-Module Pester -Force -SkipPublisherCheck -Scope CurrentUser;
14
+ Invoke-Pester /tmp/src;
15
+ exit $LastExitCode;"
16
+ # Linting for PowerShell scripts
17
+ - docker run -v ${TRAVIS_BUILD_DIR}:/tmp/src/ microsoft/powershell:6.0.4-ubuntu-trusty pwsh -c "
18
+ \$ProgressPreference='SilentlyContinue';
19
+ Install-Module PSScriptAnalyzer -Force -SkipPublisherCheck -Scope CurrentUser;
20
+ Invoke-ScriptAnalyzer -Path /tmp/src -Recurse -ReportSummary -EnableExit;
21
+ exit $LastExitCode;"
You can’t perform that action at this time.
0 commit comments