From ca0be9ad6103c1ef0b48b52ae0a85666f7bf2332 Mon Sep 17 00:00:00 2001 From: "James Truher [MSFT]" Date: Thu, 17 Nov 2016 11:59:55 -0800 Subject: [PATCH] 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" --- tools/travis.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/travis.sh b/tools/travis.sh index 24765d17e..f3ffb724b 100755 --- a/tools/travis.sh +++ b/tools/travis.sh @@ -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"