-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create knapsack_pro_queue_rspec_split_by_test_examples_above_threshold (
#71) * Update knapsack_pro_all.rb
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
16 changes: 16 additions & 0 deletions
16
bin/knapsack_pro_queue_rspec_split_by_test_examples_above_threshold
This file contains 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,16 @@ | ||
#!/bin/bash | ||
|
||
export EXTRA_TEST_FILES_DELAY=10 # seconds | ||
CI_BUILD_ID=$(openssl rand -base64 32) | ||
|
||
KNAPSACK_PRO_ENDPOINT=http://api.knapsackpro.test:3000 \ | ||
KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC=a28ce51204d7c7dbd25c3352fea222cf \ | ||
KNAPSACK_PRO_REPOSITORY_ADAPTER=git \ | ||
KNAPSACK_PRO_PROJECT_DIR=. \ | ||
KNAPSACK_PRO_CI_NODE_TOTAL=${2:-2} \ | ||
KNAPSACK_PRO_CI_NODE_INDEX=${1:-0} \ | ||
KNAPSACK_PRO_CI_NODE_BUILD_ID=${3:-$CI_BUILD_ID} \ | ||
KNAPSACK_PRO_LOG_LEVEL=debug \ | ||
KNAPSACK_PRO_RSPEC_SPLIT_BY_TEST_EXAMPLES=true \ | ||
KNAPSACK_PRO_SLOW_TEST_FILE_THRESHOLD=1 \ | ||
bundle exec rake "knapsack_pro:queue:rspec[--format d]" |