mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
* Add daily build code for travis A cron job needs to be created to start the build, and the variable TRAVIS_DAILY_BUILD must be set to true * Change environment variable to the one suggested by the travis-ci documentation TRAVIS_EVENT_TYPE == "cron"
12 lines
734 B
Bash
Executable File
12 lines
734 B
Bash
Executable File
set -x
|
|
ulimit -n 4096
|
|
# do this for our daily build test run
|
|
if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then
|
|
powershell -c "Import-Module ./build.psm1; Start-PSBootstrap; Start-PSBuild -CrossGen; Start-PSPester -Tag @('CI','Feature','Scenario') -ExcludeTag RequireAdminOnWindows; Start-PSxUnit"
|
|
# Only build packages for branches, not pull requests
|
|
elif [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
|
|
powershell -c "Import-Module ./build.psm1; Start-PSBootstrap -Package; Start-PSBuild -CrossGen; Start-PSPackage; Start-PSPester -ThrowOnFailure; Test-PSPesterResults; Start-PSxUnit"
|
|
else
|
|
powershell -c "Import-Module ./build.psm1; Start-PSBootstrap; Start-PSBuild -CrossGen; Start-PSPester -ThrowOnFailure; Start-PSxUnit"
|
|
fi
|