mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
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:
1 parent
3f99de5784
commit
ca0be9ad61
1 file changed
+4
-1
+4
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user