-
-
Notifications
You must be signed in to change notification settings - Fork 782
Pattern for running particular Travis tasks as part of a nightly build #4760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
14b1dc3
Fix and combine integration tests targets.
Kami 2c1d1a5
Try to decrease wait delay, see if that helps.
Kami 8fc1423
Add a work around for two tests which rely on longer retry delay.
Kami bbebd02
Allow wait_fixed and stop_max_delay to be provided on per method
Kami 9be8199
Merge branch 'master' of github.com:StackStorm/st2 into speed_pr_tests
Kami f9cd548
WIP: Move slow mistral unit tests and Orquesta integration tests to a
Kami 01c20bd
Update Travis config to only run nightly build if a particular task
Kami 5219ca1
Merge branch 'master' of github.com:StackStorm/st2 into move_slow_tes…
Kami 036c680
Use changes from master.
Kami 06f93a4
Orquesta integration tests have been optimized, no need to run them as
Kami 40cffe9
Update script so it knows how to handle scenario where multiple tasks
Kami 6a324b4
Fix typo.
Kami dc388e2
Move Mistral tests to a nightly build.
Kami 5022139
Add this line back.
Kami 6aeaa0a
Remove dummy / test tasks.
Kami 4347c7b
Enable Slack notifications.
Kami ea2971f
Remove test change.
Kami 3c83472
Merge branch 'master' into move_slow_tests_to_nighly_build
Kami File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Script which runs a corresponding make nightly tasks if it exists. If a task corresponding | ||
| # nightly task doesn't exist, it's ignored. | ||
| # | ||
| # For example, let's say we have TASK="ci-checks ci-unit ci-pack-tests" and only | ||
| # "ci-checks-nightly" make task exists. | ||
| # In this scenario, only "ci-check-nightly" tasks would run and other would be ignored. | ||
|
|
||
| TASK=$1 | ||
|
|
||
| if [ ! "${TASK}" ]; then | ||
| echo "Missing TASK argument" | ||
| echo "Usage: $0 <make task>" | ||
| exit 2 | ||
| fi | ||
|
|
||
| # Note: TASK could contain a list of multiple tasks | ||
| TASKS=($TASK) | ||
|
|
||
| EXISTING_TASKS=() | ||
| for TASK_NAME in ${TASKS[@]}; do | ||
| $(make -n ${TASK_NAME}-nightly &> /dev/null) | ||
|
|
||
| if [ $? -eq 0 ]; then | ||
| # Task {TASK}-nightly exists | ||
| EXISTING_TASKS+=("$TASK_NAME-nightly") | ||
| fi | ||
| done | ||
|
|
||
| # Run only tasks which exist | ||
| if [ ${#EXISTING_TASKS[@]} -eq 0 ]; then | ||
| echo "No existing nightly tasks found..." | ||
| exit 0 | ||
| fi | ||
|
|
||
| echo "Running the following nightly tasks: ${EXISTING_TASKS[@]}" | ||
| exec make ${EXISTING_TASKS[@]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍