README.md in knapsack_pro-1.22.0 vs README.md in knapsack_pro-1.22.1
- old
+ new
@@ -709,11 +709,11 @@
knapsack_pro reads ENV vars for above CI servers and it disables Fallback Mode when failed parallel CI node can't connect with Knapsack Pro API. This way we prevent running the wrong set of tests by Fallback Mode on retried CI node.
If you use other CI server you need to manually configure your CI server to set `KNAPSACK_PRO_CI_NODE_RETRY_COUNT=1` only during retry CI node attempt. If `KNAPSACK_PRO_CI_NODE_RETRY_COUNT > 0` then knapsack_pro won't allow starting running tests in Fallback Mode and instead will raise error so a user can manually retry CI node later when a connection to Knapsack Pro API can be established.
- If you cannot set `KNAPSACK_PRO_CI_NODE_RETRY_COUNT` only for retried CI node or it is not possible for your CI server then you can disable Fallback Mode completely `KNAPSACK_PRO_FALLBACK_MODE_ENABLED=false`.
+ If you cannot set `KNAPSACK_PRO_CI_NODE_RETRY_COUNT` only for retried CI node or it is not possible for your CI server then you can disable Fallback Mode completely `KNAPSACK_PRO_FALLBACK_MODE_ENABLED=false`. When Fallback Mode is disabled then knapsack_pro gem will try to connect to Knapsack Pro API 6 times instead of only 3 times to ensure there is a low chance of failing your CI node due to lost connection with the API.
### Passing arguments to rake task
#### Passing arguments to rspec
@@ -989,32 +989,45 @@
You can parallelize your builds across virtual machines with [travis matrix feature](http://docs.travis-ci.com/user/speeding-up-the-build/#parallelizing-your-builds-across-virtual-machines). Edit `.travis.yml`
```yaml
script:
- # Step for RSpec
+ # Step for RSpec in Regular Mode
- "bundle exec rake knapsack_pro:rspec"
- # Step for Cucumber
+ # Step for RSpec in Queue Mode
+ - "bundle exec rake knapsack_pro:queue:rspec"
+
+ # Step for Cucumber in Regular Mode
- "bundle exec rake knapsack_pro:cucumber"
- # Step for Minitest
+ # Step for Cucumber in Queue Mode
+ - "bundle exec rake knapsack_pro:queue:cucumber"
+
+ # Step for Minitest in Regular Mode
- "bundle exec rake knapsack_pro:minitest"
- # Step for test-unit
+ # Step for Minitest in Queue Mode
+ - "bundle exec rake knapsack_pro:queue:minitest"
+
+ # Step for test-unit in Regular Mode
- "bundle exec rake knapsack_pro:test_unit"
- # Step for Spinach
+ # Step for Spinach in Regular Mode
- "bundle exec rake knapsack_pro:spinach"
env:
global:
# tokens should be set in travis settings in web interface to avoid expose tokens in build logs
- KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC=rspec-token
- KNAPSACK_PRO_TEST_SUITE_TOKEN_CUCUMBER=cucumber-token
- KNAPSACK_PRO_TEST_SUITE_TOKEN_MINITEST=minitest-token
- KNAPSACK_PRO_TEST_SUITE_TOKEN_TEST_UNIT=test-unit-token
- KNAPSACK_PRO_TEST_SUITE_TOKEN_SPINACH=spinach-token
+
+ # if you use Knapsack Pro Queue Mode you must set below env variable
+ # to be able to retry single failed parallel job from Travis UI
+ - KNAPSACK_PRO_FIXED_QUEUE_SPLIT=true
- KNAPSACK_PRO_CI_NODE_TOTAL=2
jobs:
- KNAPSACK_PRO_CI_NODE_INDEX=0
- KNAPSACK_PRO_CI_NODE_INDEX=1