Jameswtruher/dailytravis (#2696)

* 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"
This commit is contained in:
James Truher [MSFT] authored and Sergei Vorobev committed 2016-11-17 11:59:55 -08:00
1 parent 3f99de5784
commit ca0be9ad61
1 file changed
+4 -1
+4 -1
View File
@@ -1,7 +1,10 @@
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
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
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"