PowerShell/tools/travis.sh
Andrew Schwartzmeyer af9c4cb673 Don't build packages for pull requests
Since we don't want to build packages for pull requests (as they cannot
get archived as artifacts), we need a slightly different build command,
and moving it to a script was cleaner.
2016-07-18 12:44:28 -07:00

8 lines
381 B
Bash
Executable file

ulimit -n 4096
# Only build packages for branches, not pull requests
if [[ $TRAVIS_PULL_REQUEST == false ]]; then
powershell -c "Import-Module ./build.psm1; Start-PSBootstrap -Package; Start-PSBuild -Publish; Start-PSPackage; Start-PSPester; Start-PSxUnit"
else
powershell -c "Import-Module ./build.psm1; Start-PSBootstrap; Start-PSBuild; Start-PSPester; Start-PSxUnit"
fi